|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IServiceManager
The Service Manager defined in the SOA document.
Method Summary | |
---|---|
java.lang.String |
getConfigurationName()
Convenience method to check in debug mode if this service manager is using the right configuration file. |
boolean |
isLoaded(java.lang.String pComponentName)
Checks if a given service is already loaded, convenience method for faster access. |
boolean |
isLoaded(java.lang.String pComponentName,
java.lang.String pComponentKey)
Checks if a given service is already loaded, convenience method for faster access. |
boolean |
isStable(boolean pThrowOnError)
Checks the state of the component. |
IBaseComponent |
lookup(java.lang.String pComponentName)
Retrieves a component that has been loaded and initialised based upon it's logical name. |
IBaseComponent |
lookup(java.lang.String pComponentName,
java.lang.String pComponentKey)
Retrieves a component that has been loaded and initialised based upon it's logical key name. |
IBaseComponent |
lookup(java.lang.String pComponentName,
java.lang.String pComponentKey,
java.util.Hashtable pBeanProperties)
Retrieves a component that has been loaded and initialised based upon it's logical key name. |
void |
shutdown(boolean pThrowOnError)
Shuts down all the loaded components. |
Method Detail |
---|
java.lang.String getConfigurationName()
<service>
IBaseComponent lookup(java.lang.String pComponentName) throws RaccoonException
pComponentName
- the name of the component that was given in the configuration file.
IBaseComponent
instance loaded and initialised if necessary.
RaccoonException
- if the component couldn't be loaded or found.boolean isLoaded(java.lang.String pComponentName) throws RaccoonException
lookup(java.lang.String)
pComponentName
- the logical name of the component.
true
if the object already exists within this instance of the service manager.
RaccoonException
- if the service manager isn't stable
.boolean isLoaded(java.lang.String pComponentName, java.lang.String pComponentKey) throws RaccoonException
lookup(java.lang.String)
pComponentName
- the logical name of the component.pComponentKey
- a unique key that is used to identify this given component (for example a thread-id).
true
if the object already exists within this instance of the service manager.
RaccoonException
- if the service manager isn't stable
.IBaseComponent lookup(java.lang.String pComponentName, java.lang.String pComponentKey, java.util.Hashtable pBeanProperties) throws RaccoonException
pComponentName
- the name of the component that was given in the configuration file.pComponentKey
- a unique key that is used to identify this given component (for example a thread-id).pBeanProperties
- the bean properties that are to be set before invoking the load method.
IBaseComponent
instance loaded and initialised if necessary.
RaccoonException
- if the component couldn't be loaded or found.IBaseComponent lookup(java.lang.String pComponentName, java.lang.String pComponentKey) throws RaccoonException
pComponentName
- the name of the component that was given in the configuration file.pComponentKey
- the name of the key that was given to this component (for example a thread id).
IBaseComponent
instance loaded and initialised if necessary.
RaccoonException
- if the component couldn't be loaded or found.boolean isStable(boolean pThrowOnError) throws RaccoonException
pThrowOnError
- if the component is unstable should an exception be thrown?
true
if the component is in a stable state.
RaccoonException
- if pThrowOnError
is true
and if the component is in an unstable
statevoid shutdown(boolean pThrowOnError) throws RaccoonException
pThrowOnError
- if true
will throw an exception containing all the errors that occured
whilst halting the loaded services.
RaccoonException
- if pThrowOnError
is true
and errors occur.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |