Package com.ibm.jbatch.spi
Class ServiceRegistry
- java.lang.Object
-
- com.ibm.jbatch.spi.ServiceRegistry
-
public class ServiceRegistry extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceServiceRegistry.ServiceImplClassNamesstatic interfaceServiceRegistry.ServiceInterfaceNamesstatic interfaceServiceRegistry.ServicePropertyNames
-
Constructor Summary
Constructors Constructor Description ServiceRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static Set<String>getAllServicePropertyNames()Returns a Set of all property name String(s) inServiceRegistry.ServicePropertyNamesstatic ServiceInfogetServiceInfo(String servicePropertyName)static PropertiesgetSystemPropertyOverrides()If a system property is found with key equal to: A.B where A is the current classname and B is some constant String defined in ServicePropertyNames, then the value V of this system property will be included in a new property added to the return value Properties object.
-
-
-
Method Detail
-
getAllServicePropertyNames
protected static Set<String> getAllServicePropertyNames()
Returns a Set of all property name String(s) inServiceRegistry.ServicePropertyNames- Returns:
- a set of all
ServiceRegistry.ServicePropertyNamesString values
-
getServiceInfo
public static ServiceInfo getServiceInfo(String servicePropertyName)
- Parameters:
servicePropertyName- Should be a constant defined in @seeServiceRegistry.ServicePropertyNames- Returns:
ServiceInfoassociated with servicePropertyName
-
getSystemPropertyOverrides
public static Properties getSystemPropertyOverrides()
If a system property is found with key equal to: A.B where A is the current classname and B is some constant String defined in ServicePropertyNames, then the value V of this system property will be included in a new property added to the return value Properties object. The return value will include a property with key B and value V. E.g. a system property (key=value) of: (com.ibm.jbatch.spi.ServiceRegistry.TRANSACTION_SERVICE=XXXX) will result in the return value including a property of: (TRANSACTION_SERVICE=XXXX)- Returns:
- Properties object as defined above.
-
-