org.apache.aries.blueprint.reflect
Class RegistrationListenerImpl

java.lang.Object
  extended by org.apache.aries.blueprint.reflect.RegistrationListenerImpl
All Implemented Interfaces:
MutableRegistrationListener, RegistrationListener

public class RegistrationListenerImpl
extends java.lang.Object
implements MutableRegistrationListener

Implementation of RegistrationListener.

Version:
$Rev: 896324 $, $Date: 2010-01-06 06:05:04 +0000 (Wed, 06 Jan 2010) $

Constructor Summary
RegistrationListenerImpl()
           
RegistrationListenerImpl(RegistrationListener source)
           
RegistrationListenerImpl(Target listenerComponent, java.lang.String registrationMethod, java.lang.String unregistrationMethod)
           
 
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.
 void setListenerComponent(Target listenerComponent)
           
 void setRegistrationMethod(java.lang.String registrationMethod)
           
 void setUnregistrationMethod(java.lang.String unregistrationMethod)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegistrationListenerImpl

public RegistrationListenerImpl()

RegistrationListenerImpl

public RegistrationListenerImpl(Target listenerComponent,
                                java.lang.String registrationMethod,
                                java.lang.String unregistrationMethod)

RegistrationListenerImpl

public RegistrationListenerImpl(RegistrationListener source)
Method Detail

getListenerComponent

public Target getListenerComponent()
Description copied from interface: RegistrationListener
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.

Specified by:
getListenerComponent in interface RegistrationListener
Returns:
The Metadata for the component that will receive registration and unregistration events.

setListenerComponent

public void setListenerComponent(Target listenerComponent)
Specified by:
setListenerComponent in interface MutableRegistrationListener

getRegistrationMethod

public java.lang.String getRegistrationMethod()
Description copied from interface: RegistrationListener
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.

Specified by:
getRegistrationMethod in interface RegistrationListener
Returns:
The name of the registration method.

setRegistrationMethod

public void setRegistrationMethod(java.lang.String registrationMethod)
Specified by:
setRegistrationMethod in interface MutableRegistrationListener

getUnregistrationMethod

public java.lang.String getUnregistrationMethod()
Description copied from interface: RegistrationListener
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.

Specified by:
getUnregistrationMethod in interface RegistrationListener
Returns:
The name of the unregistration method.

setUnregistrationMethod

public void setUnregistrationMethod(java.lang.String unregistrationMethod)
Specified by:
setUnregistrationMethod in interface MutableRegistrationListener

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.