org.apache.felix.ipojo.handler.wbp
Class WhiteBoardManager

java.lang.Object
  extended by org.apache.felix.ipojo.handler.wbp.WhiteBoardManager
All Implemented Interfaces:
TrackerCustomizer

public class WhiteBoardManager
extends Object
implements TrackerCustomizer

Manage a white board pattern.

Author:
Felix Project Team

Constructor Summary
WhiteBoardManager(WhiteBoardPatternHandler handler, Filter filter, String bind, String unbind, String modification)
          Constructor.
 
Method Summary
 void addedService(ServiceReference arg0)
          A new service was added to the tracker.
 boolean addingService(ServiceReference arg0)
          A new service is detected.
 void modifiedService(ServiceReference arg0, Object arg1)
          An existing service was modified.
 void removedService(ServiceReference arg0, Object arg1)
          A service disappears.
 void start()
          Opens the tracker.
 void stop()
          Closes the tracker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhiteBoardManager

public WhiteBoardManager(WhiteBoardPatternHandler handler,
                         Filter filter,
                         String bind,
                         String unbind,
                         String modification)
Constructor.

Parameters:
handler - the attached handler
filter - the monitored filter
bind - the onArrival method
unbind - the onDeparture method
modification - the onModify method
Method Detail

start

public void start()
Opens the tracker.


stop

public void stop()
Closes the tracker.


addedService

public void addedService(ServiceReference arg0)
A new service was added to the tracker.

Specified by:
addedService in interface TrackerCustomizer
Parameters:
arg0 - the service reference.
See Also:
TrackerCustomizer.addedService(org.osgi.framework.ServiceReference)

addingService

public boolean addingService(ServiceReference arg0)
A new service is detected.

Specified by:
addingService in interface TrackerCustomizer
Parameters:
arg0 - the service reference
Returns:
true to add the service.
See Also:
TrackerCustomizer.addingService(org.osgi.framework.ServiceReference)

modifiedService

public void modifiedService(ServiceReference arg0,
                            Object arg1)
An existing service was modified.

Specified by:
modifiedService in interface TrackerCustomizer
Parameters:
arg0 - the service reference
arg1 - the service object (if already get)
See Also:
TrackerCustomizer.modifiedService(org.osgi.framework.ServiceReference, java.lang.Object)

removedService

public void removedService(ServiceReference arg0,
                           Object arg1)
A service disappears.

Specified by:
removedService in interface TrackerCustomizer
Parameters:
arg0 - the service reference
arg1 - the service object (if already get)
See Also:
TrackerCustomizer.removedService(org.osgi.framework.ServiceReference, java.lang.Object)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.