|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.orderlysoftware.orderlycalls.OrderlyCallsImpl
public class OrderlyCallsImpl
The OrderlyCalls class instantiates one of these and calls its methods from within its static methods.
You may instantiate this class directly, however you will no longer be able to retrieve Services statically.
Direct instantiation of this class is therefore not recommended.
Constructor Summary | |
---|---|
OrderlyCallsImpl()
Not recommended. |
Method Summary | |
---|---|
void |
addService(Service service)
Adds a service (with a named Settings object) to the framework. |
java.lang.Object |
getService(java.lang.Class serviceClass)
Gets services by service class. |
Service |
getService(java.lang.String name)
Gets a Service by name. |
java.util.HashMap |
getServicesMap()
Gets the mapping between names and services. |
Settings |
getSettings(java.lang.String name)
Gets a Settings object. |
java.util.HashMap |
getSettingsMap()
Gets the mapping between names and service Settings objects. |
void |
init(java.io.File f)
Initialise from config file. |
void |
init(java.util.HashMap definitionsBySettings)
Initialises OrderlyCalls programmatically. |
void |
init(java.io.InputStream is)
Initialise from stream. |
void |
init(java.lang.String path)
Initialise from config file. |
void |
removeService(Service service)
Removes a service (with a named Settings object) from the framework. |
void |
setLogLevel(java.util.logging.Level level)
Sets the logging level. |
void |
setLogLevel(java.lang.String levelStr)
Sets the logging level. |
void |
shutdown()
Shuts down all services. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrderlyCallsImpl()
Method Detail |
---|
public void init(java.lang.String path)
path
- The path to the configuration XML file.public void init(java.io.File f)
f
- The file to read.public void init(java.io.InputStream is)
is
- An InputStream containing XML.public void setLogLevel(java.util.logging.Level level)
level
- The level to be used by all OrderlyCalls classes.public void setLogLevel(java.lang.String levelStr)
levelStr
- One of "SEVERE","WARNING","INFO","FINE","FINER","ALL"public void init(java.util.HashMap definitionsBySettings)
definitionsBySettings
- A HashMap containing Settings objects as keys, and Definition
objects as values.public void addService(Service service)
service
- The service to add.public void removeService(Service service)
service
- The service to remove.public void shutdown()
public java.util.HashMap getServicesMap()
public java.util.HashMap getSettingsMap()
public Service getService(java.lang.String name)
name
- The name of the Service.
public java.lang.Object getService(java.lang.Class serviceClass)
serviceClass
- The class of service to find.
public Settings getSettings(java.lang.String name)
name
- The name of the corresponding Service.
Service.getSettings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |