Interface ReferenceListener
@ConsumerType
public interface ReferenceListener
Metadata for a reference listener interested in the reference bind and unbind
events for a service reference.
- Author:
- $Id: 09a44faa9684988621ae47a481d32d4e6c029ec2 $
-
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the bind method.Return the Metadata for the component that will receive bind and unbind events.Return the name of the unbind method.
-
Method Details
-
getListenerComponent
Target getListenerComponent()Return the Metadata for the component that will receive bind and unbind events. This is specified by theref
attribute or via an inlined component.- Returns:
- The Metadata for the component that will receive bind and unbind events.
-
getBindMethod
String getBindMethod()Return the name of the bind method. The bind method will be invoked when a matching service is bound to the reference. This is specified by thebind-method
attribute of the reference listener.- Returns:
- The name of the bind method.
-
getUnbindMethod
String getUnbindMethod()Return the name of the unbind method. The unbind method will be invoked when a matching service is unbound from the reference. This is specified by theunbind-method
attribute of the reference listener.- Returns:
- The name of the unbind method.
-