|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.crispy.server.MultiServiceContainerImpl
Container for the service implementation. This is a mapping from service-interface plus a key (e.g. user key or sessionId) to the service-implementation. The service instance exist multiple (per key). They service implementation must not be Thread safe.
Constructor Summary | |
MultiServiceContainerImpl()
|
Method Summary | |
int |
getKeySize()
Size of services in the container. |
java.lang.String |
getRegisterServiceByServiceInterfaceName(java.lang.String pvServiceInterfaceName)
|
int |
getRegisterServiceSize()
|
java.lang.Object |
getService(java.lang.Object pvKey,
java.lang.String pvServiceInterfaceName)
Find the service impl. |
ServiceCreator |
getServiceCreator()
|
int |
getServiceSize(java.lang.Object pvKey)
Get the size of services for a key. |
void |
registerService(java.lang.String pvServiceInterfaceName,
java.lang.String pvServiceImplName)
|
void |
removeAllServices(java.lang.Object pvKey)
Remove all service by a key. |
java.lang.String |
removeRegisterServiceByServiceInterfaceName(java.lang.String pvServiceInterfaceName)
|
void |
removeService(java.lang.Object pvKey,
java.lang.String pvServiceInterfaceName)
Remove the service from the container. |
void |
setServiceCreator(ServiceCreator pvServiceCreator)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultiServiceContainerImpl()
Method Detail |
public void setServiceCreator(ServiceCreator pvServiceCreator)
public ServiceCreator getServiceCreator()
public void registerService(java.lang.String pvServiceInterfaceName, java.lang.String pvServiceImplName)
public java.lang.String getRegisterServiceByServiceInterfaceName(java.lang.String pvServiceInterfaceName)
public java.lang.String removeRegisterServiceByServiceInterfaceName(java.lang.String pvServiceInterfaceName)
public int getRegisterServiceSize()
public java.lang.Object getService(java.lang.Object pvKey, java.lang.String pvServiceInterfaceName) throws java.lang.Exception
pvKey
- Is the key in a map.pvServiceInterfaceName
- Is the key for the service impl in a map.
null
.
java.lang.Exception
public void removeService(java.lang.Object pvKey, java.lang.String pvServiceInterfaceName)
pvKey
- Is the key in a map.pvServiceInterfaceName
- Is the key for the service impl in a map.public void removeAllServices(java.lang.Object pvKey)
pvKey
- The key to removed services.public int getServiceSize(java.lang.Object pvKey)
pvKey
- search key
public int getKeySize()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |