OSGi™ Service Platform
Compendium Specification

Release 4 Version 4.3

org.osgi.service.blueprint.reflect
Interface RegistrationListener


public interface RegistrationListener

Metadata for a registration listener interested in service registration and unregistration events for a service.

The registration listener is called with the initial state of the service when the registration listener is actuated.

ThreadSafe

Method Summary
 Target getListenerComponent()
          Return the Metadata for the component that will receive registration and unregistration events.
 java.lang.String getRegistrationMethod()
          Return the name of the registration method.
 java.lang.String getUnregistrationMethod()
          Return the name of the unregistration method.
 

Method Detail

getListenerComponent

Target getListenerComponent()
Return the Metadata for the component that will receive registration and unregistration events. This is specified by the ref attribute or via an inlined component.

Returns:
The Metadata for the component that will receive registration and unregistration events.

getRegistrationMethod

java.lang.String getRegistrationMethod()
Return the name of the registration method. The registration method will be invoked when the associated service is registered with the service registry. This is specified by the registration-method attribute of the registration listener.

Returns:
The name of the registration method.

getUnregistrationMethod

java.lang.String getUnregistrationMethod()
Return the name of the unregistration method. The unregistration method will be invoked when the associated service is unregistered from the service registry. This is specified by the unregistration-method attribute of the registration listener.

Returns:
The name of the unregistration method.

OSGi™ Service Platform
Compendium Specification

Release 4 Version 4.3

Copyright © OSGi Alliance (2000, 2012). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0