|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectelectric.service.wrapper.ServiceWrapper
ServiceWrapper.
| Constructor Summary | |
ServiceWrapper()
|
|
| Method Summary | |
static java.lang.String |
getServiceWrapper()
Return the name of the default service wrapper class. |
IService |
newService(java.lang.Object object)
If the object implements IService, return the object, otherwise return the object wrapped in an instance of the default wrapper class. |
static void |
setServiceWrapper(java.lang.String className)
Set the name for the default service wrapper class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ServiceWrapper()
| Method Detail |
public IService newService(java.lang.Object object)
throws java.lang.Exception
newService in interface IServiceFactoryobject - The object.
java.lang.Exception - If an exception occured during the wrapping process.public static java.lang.String getServiceWrapper()
public static void setServiceWrapper(java.lang.String className)
throws java.lang.ClassNotFoundException,
java.lang.NoSuchMethodException
className - The name of the class.
java.lang.ClassNotFoundException - If the class could not be found.
java.lang.NoSuchMethodException - If a constructor that takes an object could not be found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||