java.lang.Objectorg.objectweb.telosys.common.TelosysObject
org.objectweb.telosys.service.StandardServiceRegistry
This is the standard ancestor class designed to build a "Service Registry" ( "Service Provider" )
It provides the "register" and "registerServicePackage" methods designed
to be used in the child class.
Constructor Summary | |
StandardServiceRegistry()
Constructor |
Method Summary | |
ScreenService |
getService(java.lang.String sServiceName)
Returns an instance of the service identified by its name |
java.lang.String |
getSessionKey(java.lang.String sServiceName)
Returns the key used to store the service result in the ScreenSession |
void |
init()
Initializes the screen provider using the current Telosys properties |
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 |
public void init()
IServiceProvider
init
in interface IServiceProvider
public ScreenService getService(java.lang.String sServiceName) throws TelosysException
IServiceProvider
getService
in interface IServiceProvider
sServiceName
- the name of the service
TelosysException
public java.lang.String getSessionKey(java.lang.String sServiceName) throws TelosysException
IServiceProvider
getSessionKey
in interface IServiceProvider
sServiceName
- the name of the service
TelosysException
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)protected final void registerServicePackage(java.lang.String sPackage)
sPackage
-