textbender.g.beans.beancontext
Class BeanContextServicesX

java.lang.Object
  extended by BeanContextServicesX

public final class BeanContextServicesX
extends Object

BeanContextServices utilities.


Method Summary
static void addBeanContextServicesListener(BeanContextServices serviceSource, BeanContextServicesListener listener, boolean fireUp)
          Registers a new service listener, firing it up to the current service state.
static void fireUp(BeanContextServicesListener listener, BeanContextServices serviceSource)
          Fires up a listener to the current service state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addBeanContextServicesListener

public static void addBeanContextServicesListener(BeanContextServices serviceSource,
                                                  BeanContextServicesListener listener,
                                                  boolean fireUp)
Registers a new service listener, firing it up to the current service state.

Parameters:
serviceSource - to register the listener with
listener - to register
fireUp - if true, listener is immediately fired up to the current state; otherwise it is not

fireUp

public static void fireUp(BeanContextServicesListener listener,
                          BeanContextServices serviceSource)
Fires up a listener to the current service state. This entails immediately re-firing BeanContextServiceAvailableEvents for every service already present in the source. All re-fired events will be sent to the listener before this method returns.

Parameters:
listener - to fire up
serviceSource - to fire the listener up to