org.apache.cxf.transport
Class DestinationFactoryManagerImpl

java.lang.Object
  extended by org.apache.cxf.transport.DestinationFactoryManagerImpl
All Implemented Interfaces:
DestinationFactoryManager

public final class DestinationFactoryManagerImpl
extends java.lang.Object
implements DestinationFactoryManager


Constructor Summary
DestinationFactoryManagerImpl()
           
DestinationFactoryManagerImpl(java.util.Map<java.lang.String,DestinationFactory> destinationFactories)
           
DestinationFactoryManagerImpl(MapProvider<java.lang.String,DestinationFactory> destinationFactories)
           
 
Method Summary
 void deregisterDestinationFactory(java.lang.String namespace)
           
 DestinationFactory getDestinationFactory(java.lang.String namespace)
          Returns the conduit initiator for the given namespace, constructing it (and storing in the cache for future reference) if necessary, using its list of factory classname to namespace mappings.
 DestinationFactory getDestinationFactoryForUri(java.lang.String uri)
           
 void register()
           
 void registerDestinationFactory(java.lang.String namespace, DestinationFactory factory)
           
 void setBus(Bus b)
           
 void setMapProvider(MapProvider<java.lang.String,DestinationFactory> mapProvider)
          Spring is slow for constructors with arguments.
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DestinationFactoryManagerImpl

public DestinationFactoryManagerImpl()

DestinationFactoryManagerImpl

public DestinationFactoryManagerImpl(java.util.Map<java.lang.String,DestinationFactory> destinationFactories)

DestinationFactoryManagerImpl

public DestinationFactoryManagerImpl(MapProvider<java.lang.String,DestinationFactory> destinationFactories)
Method Detail

setMapProvider

public void setMapProvider(MapProvider<java.lang.String,DestinationFactory> mapProvider)
Spring is slow for constructors with arguments. This accessor permits initialization via a property.

Parameters:
mapProvider -

setBus

public void setBus(Bus b)

register

@PostConstruct
public void register()

registerDestinationFactory

public void registerDestinationFactory(java.lang.String namespace,
                                       DestinationFactory factory)
Specified by:
registerDestinationFactory in interface DestinationFactoryManager

deregisterDestinationFactory

public void deregisterDestinationFactory(java.lang.String namespace)
Specified by:
deregisterDestinationFactory in interface DestinationFactoryManager

getDestinationFactory

public DestinationFactory getDestinationFactory(java.lang.String namespace)
                                         throws BusException
Returns the conduit initiator for the given namespace, constructing it (and storing in the cache for future reference) if necessary, using its list of factory classname to namespace mappings.

Specified by:
getDestinationFactory in interface DestinationFactoryManager
Parameters:
namespace - the namespace.
Throws:
BusException

shutdown

@PreDestroy
public void shutdown()

getDestinationFactoryForUri

public DestinationFactory getDestinationFactoryForUri(java.lang.String uri)
Specified by:
getDestinationFactoryForUri in interface DestinationFactoryManager


Apache CXF