|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.crispy.server.SingleServiceContainerImpl
Container for the service implementation. This is a mapping from service-interface to the service-implementation. The service instance exist once. They must be Thread safe.
Constructor Summary | |
SingleServiceContainerImpl()
|
Method Summary | |
void |
addService(java.lang.String pvServiceInterfaceName,
java.lang.Object pvServiceImpl)
see net.sf.crispy.server.SingleServiceContainer#addService(java.lang.String, java.lang.Object) |
void |
addService(java.lang.String pvServiceInterfaceName,
java.lang.String pvServiceImplName)
Create a instance from the service impl class name. |
java.lang.Object |
getService(java.lang.String pvServiceInterfaceName)
Find the service impl. |
int |
getServiceSize()
Size of services in the container. |
void |
removeService(java.lang.String pvServiceInterfaceName)
Remove the service from the container. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SingleServiceContainerImpl()
Method Detail |
public void addService(java.lang.String pvServiceInterfaceName, java.lang.Object pvServiceImpl)
addService
in interface SingleServiceContainer
pvServiceInterfaceName
- Is the key in a map.pvServiceImpl
- Is the value in a map.public void addService(java.lang.String pvServiceInterfaceName, java.lang.String pvServiceImplName)
SingleServiceContainer
addService
in interface SingleServiceContainer
pvServiceInterfaceName
- Is the key in a map.pvServiceImplName
- Is the class name from the service impl.SingleServiceContainer.addService(java.lang.String, java.lang.String)
public void removeService(java.lang.String pvServiceInterfaceName)
SingleServiceContainer
removeService
in interface SingleServiceContainer
pvServiceInterfaceName
- Is the key in a map.SingleServiceContainer.removeService(java.lang.String)
public java.lang.Object getService(java.lang.String pvServiceInterfaceName)
SingleServiceContainer
getService
in interface SingleServiceContainer
pvServiceInterfaceName
- Is the key in a map.
null
.SingleServiceContainer.getService(java.lang.String)
public int getServiceSize()
SingleServiceContainer
getServiceSize
in interface SingleServiceContainer
SingleServiceContainer.getServiceSize()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |