org.apache.aries.blueprint.reflect
Class ReferenceListenerImpl

java.lang.Object
  extended by org.apache.aries.blueprint.reflect.ReferenceListenerImpl
All Implemented Interfaces:
MutableReferenceListener, ReferenceListener

public class ReferenceListenerImpl
extends java.lang.Object
implements MutableReferenceListener

Implementation of Listener

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

Constructor Summary
ReferenceListenerImpl()
           
ReferenceListenerImpl(ReferenceListener source)
           
ReferenceListenerImpl(Target listenerComponent, java.lang.String bindMethod, java.lang.String unbindMethod)
           
 
Method Summary
 java.lang.String getBindMethod()
          Return the name of the bind method.
 Target getListenerComponent()
          Return the Metadata for the component that will receive bind and unbind events.
 java.lang.String getUnbindMethod()
          Return the name of the unbind method.
 void setBindMethod(java.lang.String bindMethodName)
           
 void setListenerComponent(Target listenerComponent)
           
 void setUnbindMethod(java.lang.String unbindMethodName)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReferenceListenerImpl

public ReferenceListenerImpl()

ReferenceListenerImpl

public ReferenceListenerImpl(Target listenerComponent,
                             java.lang.String bindMethod,
                             java.lang.String unbindMethod)

ReferenceListenerImpl

public ReferenceListenerImpl(ReferenceListener source)
Method Detail

getListenerComponent

public Target getListenerComponent()
Description copied from interface: ReferenceListener
Return the Metadata for the component that will receive bind and unbind events. This is specified by the ref attribute or via an inlined component.

Specified by:
getListenerComponent in interface ReferenceListener
Returns:
The Metadata for the component that will receive bind and unbind events.

setListenerComponent

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

getBindMethod

public java.lang.String getBindMethod()
Description copied from interface: ReferenceListener
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 the bind-method attribute of the reference listener.

Specified by:
getBindMethod in interface ReferenceListener
Returns:
The name of the bind method.

setBindMethod

public void setBindMethod(java.lang.String bindMethodName)
Specified by:
setBindMethod in interface MutableReferenceListener

getUnbindMethod

public java.lang.String getUnbindMethod()
Description copied from interface: ReferenceListener
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 the unbind-method attribute of the reference listener.

Specified by:
getUnbindMethod in interface ReferenceListener
Returns:
The name of the unbind method.

setUnbindMethod

public void setUnbindMethod(java.lang.String unbindMethodName)
Specified by:
setUnbindMethod in interface MutableReferenceListener

toString

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


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