public class ServicesConfig extends java.lang.Object implements ChannelConfig, ScannedItemHandler
| Constructor and Description |
|---|
ServicesConfig(java.io.InputStream customConfigIs,
Configuration configuration,
boolean scan) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChannel(Channel channel) |
void |
addFactory(Factory factory) |
void |
addService(Service service) |
Channel |
findChannelById(java.lang.String id) |
Destination |
findDestinationById(java.lang.String messageType,
java.lang.String id) |
java.util.List<Destination> |
findDestinationsByMessageType(java.lang.String messageType) |
Factory |
findFactoryById(java.lang.String id) |
Service |
findServiceById(java.lang.String id) |
java.util.List<Service> |
findServicesByMessageType(java.lang.String messageType) |
boolean |
getChannelProperty(java.lang.String channelId,
java.lang.String propertyName) |
void |
handleClass(java.lang.Class<?> clazz) |
boolean |
handleMarkerItem(ScannedItem item) |
void |
handleRemoveService(java.lang.Class<?> clazz)
Remove service (new addings for osgi).
|
void |
handleScannedItem(ScannedItem item) |
void |
scan(Configuration configuration) |
public ServicesConfig(java.io.InputStream customConfigIs,
Configuration configuration,
boolean scan)
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOExceptionorg.xml.sax.SAXExceptionpublic boolean handleMarkerItem(ScannedItem item)
handleMarkerItem in interface ScannedItemHandlerpublic void handleScannedItem(ScannedItem item)
handleScannedItem in interface ScannedItemHandlerpublic void handleClass(java.lang.Class<?> clazz)
public void scan(Configuration configuration)
public Service findServiceById(java.lang.String id)
public java.util.List<Service> findServicesByMessageType(java.lang.String messageType)
public void addService(Service service)
public Channel findChannelById(java.lang.String id)
public void addChannel(Channel channel)
public Factory findFactoryById(java.lang.String id)
public void addFactory(Factory factory)
public Destination findDestinationById(java.lang.String messageType, java.lang.String id)
public java.util.List<Destination> findDestinationsByMessageType(java.lang.String messageType)
public void handleRemoveService(java.lang.Class<?> clazz)
clazz - service class.public boolean getChannelProperty(java.lang.String channelId,
java.lang.String propertyName)
getChannelProperty in interface ChannelConfig