Package org.serviceconnector.registry
Class ServiceRegistry
java.lang.Object
org.serviceconnector.registry.Registry<String,Service>
org.serviceconnector.registry.ServiceRegistry
- All Implemented Interfaces:
IRegistryMXBean
The Class ServiceRegistry. Registry stores entries for properly configured services.
- Author:
- JTraber
-
Field Summary
Fields inherited from class org.serviceconnector.registry.Registry
registryMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddService(String key, Service service) Adds the service.voiddump(XMLDumpWriter writer) Dump the services into the xml writer.getService(String key) Gets the service.Service[]Gets the services.removeService(String key) Removes the service.voidremoveService(Service service) Removes the service.Methods inherited from class org.serviceconnector.registry.Registry
containsKey, get, getEntries, getSize, keySet, keySetArray, put, remove, toString
-
Constructor Details
-
ServiceRegistry
public ServiceRegistry()
-
-
Method Details
-
addService
Adds the service.- Parameters:
key- the keyservice- the service
-
getService
Gets the service.- Parameters:
key- the key- Returns:
- the service
-
getServices
Gets the services.- Returns:
- the services
-
removeService
Removes the service.- Parameters:
service- the service
-
removeService
Removes the service.- Parameters:
key- the key- Returns:
- the service
-
dump
Dump the services into the xml writer.- Parameters:
writer- the writer- Throws:
Exception- the exception
-