java.lang.Objectorg.objectweb.telosys.common.TelosysObject
org.objectweb.telosys.service.StandardServiceRegistry
Constructor Summary | |
StandardServiceRegistry()
|
Method Summary | |
ScreenService |
getService(java.lang.String sServiceName)
Return an instance of the service identified by its name |
java.lang.String |
getSessionKey(java.lang.String sServiceName)
Return the key used to store the service result in the ScreenSession |
protected void |
register(java.lang.String serviceName,
java.lang.Class serviceClass,
java.lang.String sRenderer,
java.lang.String sSessionKey)
Register the service for future use. |
protected void |
registerServicePackage(java.lang.String sPackage)
Register the given package as a "service package" ( a package that can contain Telosys Service Classes ) |
Methods inherited from class org.objectweb.telosys.common.TelosysObject |
error, error, error, getFlagTrace, info, setFlagTrace, trace, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StandardServiceRegistry()
Method Detail |
protected final void register(java.lang.String serviceName, java.lang.Class serviceClass, java.lang.String sRenderer, java.lang.String sSessionKey)
serviceName
- the logical name of the serviceserviceClass
- the class where the service is implementedsRenderer
- the renderer used to build the "result view" (no view if null)sSessionKey
- the key used to store the result in session (not stored if null)public ScreenService getService(java.lang.String sServiceName) throws TelosysException
IServiceProvider
getService
in interface IServiceProvider
sServiceName
-
TelosysException
public java.lang.String getSessionKey(java.lang.String sServiceName) throws TelosysException
IServiceProvider
getSessionKey
in interface IServiceProvider
sServiceName
-
TelosysException
protected final void registerServicePackage(java.lang.String sPackage)
sPackage
-