@ Reference ( service = Controller . class , cardinality = ReferenceCardinality . OPTIONAL , policy = ReferencePolicy . DYNAMIC , policyOption = ReferencePolicyOption . GREEDY ) protected void setController ( ServiceReference < Controller > ref ) { controllerRef . setReference ( ref ) ; }
Declarative Services method for setting the controller