| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.crispy.impl.ServiceManager
Create Services for different kind of Services, how XML-RPC, EJB (JNDI), ... or a simple local invocation from a Java-Object (Factory-Pattern). It is the central class (it is a start point).
| Field Summary | |
static boolean | 
DEBUG_MODE_ON
extra debug mode for more information by problems  | 
| Constructor Summary | |
ServiceManager()
 | 
|
ServiceManager(java.lang.Class pvServiceInterface,
               java.lang.Class pvServiceClass)
 | 
|
ServiceManager(java.util.Properties pvProperties)
 | 
|
ServiceManager(PropertiesLoader pvPropertiesLoader)
 | 
|
| Method Summary | |
 void | 
addInterceptor(Interceptor pvInterceptor)
 | 
 void | 
addInterceptorFilter(InterceptorFilter pvInterceptorFilter)
 | 
 java.lang.Object | 
createService(java.lang.Class pvServiceInterface)
Create a Proxy-Instance to the Service-Interface for synchronous invocation.  | 
 java.lang.Object | 
createService(java.lang.Class pvServiceInterface,
              AsynchronousCallback pvAsynchronousCallback,
              java.lang.String[] pvMethodFilter,
              int pvMaxSizeOfThreads)
Create a Proxy-Object for invocation and do invocation asynchronous.  | 
 AsynchronousCallback | 
getAsynchronousCallback(java.lang.Class pvServiceInterface)
 | 
 Interceptor | 
getInterceptorByPos(int pvPos)
 | 
 int | 
getInterceptorFilterSize()
 | 
 java.util.Iterator | 
getInterceptorIterator()
 | 
 int | 
getInterceptorSize()
 | 
 Modifier | 
getModifier()
 | 
 java.lang.String | 
getProperty(java.lang.String pvKey)
 | 
 java.util.Iterator | 
getPropertyKeys()
 | 
 java.lang.Class | 
getTransporterClassByServiceInterface(java.lang.Class pvServiceInterface)
 | 
protected  void | 
init(java.util.Properties pvProperties)
 | 
 boolean | 
isInvocationAsynchronous(java.lang.Class pvServiceInterface)
Are calls asynchronous.  | 
 void | 
removeAllInterceptors()
 | 
 void | 
removeAsynchronousCallback(java.lang.Class pvServiceInterface)
Remove asynchronous callback interface.  | 
 Interceptor | 
removeInterceptorByPos(int pvPos)
 | 
 InterceptorFilter | 
removeInterceptorFilterByPos(int pvPos)
 | 
 void | 
setModifier(Modifier pvModifier)
 | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static boolean DEBUG_MODE_ON
| Constructor Detail | 
public ServiceManager(PropertiesLoader pvPropertiesLoader)
public ServiceManager(java.lang.Class pvServiceInterface,
                      java.lang.Class pvServiceClass)
public ServiceManager(java.util.Properties pvProperties)
public ServiceManager()
| Method Detail | 
protected final void init(java.util.Properties pvProperties)
public final java.util.Iterator getInterceptorIterator()
public final Interceptor getInterceptorByPos(int pvPos)
getInterceptorByPos in interface IServiceManagerpublic final int getInterceptorSize()
getInterceptorSize in interface IServiceManagerpublic final Interceptor removeInterceptorByPos(int pvPos)
removeInterceptorByPos in interface IServiceManagerpublic final void removeAllInterceptors()
public final void addInterceptor(Interceptor pvInterceptor)
addInterceptor in interface IServiceManagerpublic final int getInterceptorFilterSize()
public final InterceptorFilter removeInterceptorFilterByPos(int pvPos)
public final void addInterceptorFilter(InterceptorFilter pvInterceptorFilter)
public final Modifier getModifier()
getModifier in interface IServiceManagerpublic final void setModifier(Modifier pvModifier)
setModifier in interface IServiceManagerpublic final java.lang.String getProperty(java.lang.String pvKey)
getProperty in interface IServiceManagerpublic final java.util.Iterator getPropertyKeys()
getPropertyKeys in interface IServiceManagerpublic java.lang.Object createService(java.lang.Class pvServiceInterface)
createService in interface IServiceManagerpvServiceInterface - Service-Interface
IServiceManager.createService(java.lang.Class)
public java.lang.Object createService(java.lang.Class pvServiceInterface,
                                      AsynchronousCallback pvAsynchronousCallback,
                                      java.lang.String[] pvMethodFilter,
                                      int pvMaxSizeOfThreads)
createService in interface IServiceManagerpvServiceInterface - For this Interface is created a Proxy-Object.pvAsynchronousCallback - Hanlder for asynchronous execution.pvMethodFilter - Only for method-names in this array are asynchronous executionpvMaxSizeOfThreads - Max size of keeping Threads.
IServiceManager.createService(java.lang.Class, net.sf.crispy.concurrent.AsynchronousCallback, java.lang.String[], int)public java.lang.Class getTransporterClassByServiceInterface(java.lang.Class pvServiceInterface)
pvServiceInterface - Search Service-Interface.
public void removeAsynchronousCallback(java.lang.Class pvServiceInterface)
IServiceManager
removeAsynchronousCallback in interface IServiceManagerpvServiceInterface - This is apply to this service interface.public AsynchronousCallback getAsynchronousCallback(java.lang.Class pvServiceInterface)
public boolean isInvocationAsynchronous(java.lang.Class pvServiceInterface)
IServiceManager
isInvocationAsynchronous in interface IServiceManagerpvServiceInterface - Test to asynchronous for this service interface.
true, else false.
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||