net.sf.crispy
Interface IServiceManager

All Known Implementing Classes:
ServiceManager

public interface IServiceManager

Minimun on method for ServiceManager. You can implement your own ServiceManager and delegate all calls to the implementation from the ServiceManager. In your own implementation you can (for example) set default properties or you can hide implementations details (capsule).

Author:
Linke

Method Summary
 void addInterceptor(Interceptor pvInterceptor)
           
 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 asynchronous invocation.
 Interceptor getInterceptorByPos(int pvPos)
           
 int getInterceptorSize()
           
 Modifier getModifier()
           
 java.lang.String getProperty(java.lang.String pvKey)
           
 java.util.Iterator getPropertyKeys()
           
 boolean isInvocationAsynchronous(java.lang.Class pvServiceInterface)
          Are calls asynchronous.
 void removeAsynchronousCallback(java.lang.Class pvServiceInterface)
          Remove asynchronous callback interface.
 Interceptor removeInterceptorByPos(int pvPos)
           
 void setModifier(Modifier pvModifier)
           
 

Method Detail

getInterceptorByPos

public Interceptor getInterceptorByPos(int pvPos)

getInterceptorSize

public int getInterceptorSize()

removeInterceptorByPos

public Interceptor removeInterceptorByPos(int pvPos)

addInterceptor

public void addInterceptor(Interceptor pvInterceptor)

getModifier

public Modifier getModifier()

setModifier

public void setModifier(Modifier pvModifier)

getProperty

public java.lang.String getProperty(java.lang.String pvKey)

getPropertyKeys

public java.util.Iterator getPropertyKeys()

createService

public java.lang.Object createService(java.lang.Class pvServiceInterface)
Create a Proxy-Instance to the Service-Interface for synchronous invocation.

Parameters:
pvServiceInterface - Service-Interface
Returns:
Proxy-Object.

createService

public java.lang.Object createService(java.lang.Class pvServiceInterface,
                                      AsynchronousCallback pvAsynchronousCallback,
                                      java.lang.String[] pvMethodFilter,
                                      int pvMaxSizeOfThreads)
Create a Proxy-Object for asynchronous invocation.

Parameters:
pvServiceInterface - For this Interface is created a Proxy-Object.
pvAsynchronousCallback - Hanlder for asynchronous execution.
pvMethodFilter - Only for method-names in this array are asynchronous execution
pvMaxSizeOfThreads - Max size of keeping Threads.
Returns:
Proxy-Object.

isInvocationAsynchronous

public boolean isInvocationAsynchronous(java.lang.Class pvServiceInterface)
Are calls asynchronous.

Parameters:
pvServiceInterface - Test to asynchronous for this service interface.
Returns:
If asynchronous, than true, else false.

removeAsynchronousCallback

public void removeAsynchronousCallback(java.lang.Class pvServiceInterface)
Remove asynchronous callback interface. All execution are synchronous.

Parameters:
pvServiceInterface - This is apply to this service interface.


Copyright © 2005-2006 Crispy. All Rights Reserved.