com.day.cq.replication.impl
Class ServiceTrackerImpl

java.lang.Object
  extended by com.day.cq.replication.impl.ServiceTrackerImpl
All Implemented Interfaces:
ServiceTracker

public class ServiceTrackerImpl
extends Object
implements ServiceTracker

This service keeps track of all services taking part in the replication like ContentBuilder or TransportHandler.


Constructor Summary
ServiceTrackerImpl()
           
 
Method Summary
protected  void activate(org.osgi.service.component.ComponentContext context)
           
protected  void bindContentBuilder(org.osgi.framework.ServiceReference ref)
           
protected  void bindTransportHandler(org.osgi.framework.ServiceReference ref)
           
protected  void deactivate(org.osgi.service.component.ComponentContext context)
           
 ContentBuilder getContentBuilder(String name)
          returns the content builder factory with the given name or null if none.
 TransportHandler getTransportHandler(String name)
          returns the transport handler factory with the given name or null if none.
protected  void unbindContentBuilder(org.osgi.framework.ServiceReference ref)
           
protected  void unbindTransportHandler(org.osgi.framework.ServiceReference ref)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceTrackerImpl

public ServiceTrackerImpl()
Method Detail

activate

protected void activate(org.osgi.service.component.ComponentContext context)

deactivate

protected void deactivate(org.osgi.service.component.ComponentContext context)

bindContentBuilder

protected void bindContentBuilder(org.osgi.framework.ServiceReference ref)

bindTransportHandler

protected void bindTransportHandler(org.osgi.framework.ServiceReference ref)

unbindContentBuilder

protected void unbindContentBuilder(org.osgi.framework.ServiceReference ref)

unbindTransportHandler

protected void unbindTransportHandler(org.osgi.framework.ServiceReference ref)

getContentBuilder

public ContentBuilder getContentBuilder(String name)
Description copied from interface: ServiceTracker
returns the content builder factory with the given name or null if none.

Specified by:
getContentBuilder in interface ServiceTracker
See Also:
ServiceTracker.getContentBuilder(java.lang.String)

getTransportHandler

public TransportHandler getTransportHandler(String name)
Description copied from interface: ServiceTracker
returns the transport handler factory with the given name or null if none.

Specified by:
getTransportHandler in interface ServiceTracker
See Also:
ServiceTracker.getTransportHandler(java.lang.String)


Copyright © 2008 Day Management AG. All Rights Reserved.