net.sf.crispy.server
Interface ServiceEndpoint

All Known Implementing Classes:
HttpServiceEndpoint, RmiInvocationHandlerImpl, ServiceEndpointImpl

public interface ServiceEndpoint

This is the entry point on the server side for the transport provider. This is the complement to the Proxy on the client side (created from the ServiceManage).

Since:
1.1.0
Author:
Linke

Method Summary
 InterceptorHandler createNewInterceptorHandlerInstance()
          Hint:Every call from this method must get a new instance from InterceptorHandler!
 java.lang.Object doInvoke(java.lang.Object pvServiceImpl, java.lang.reflect.Method pvMethod, java.lang.Object[] pvArgs, InterceptorHandler pvInterceptorHandler)
          Execute the service with the InvocationHandler with delegate to doInvoke.
 InterceptorHandlerCreator getInterceptorHandlerCreator()
          Get a implementation for the interface InterceptorHandlerCreator.
 void setInterceptorHandlerCreator(InterceptorHandlerCreator pvCreator)
          Set a implementation for the interface InterceptorHandlerCreator.
 

Method Detail

setInterceptorHandlerCreator

public void setInterceptorHandlerCreator(InterceptorHandlerCreator pvCreator)
Set a implementation for the interface InterceptorHandlerCreator. It is equally with the method createNewInterceptorHandlerInstance.

Parameters:
pvCreator -

getInterceptorHandlerCreator

public InterceptorHandlerCreator getInterceptorHandlerCreator()
Get a implementation for the interface InterceptorHandlerCreator.

Returns:
The InterceptorHandlerCreator implementation.

createNewInterceptorHandlerInstance

public InterceptorHandler createNewInterceptorHandlerInstance()
Hint:Every call from this method must get a new instance from InterceptorHandler!

Returns:
The desired implementation with registered interceptors.

doInvoke

public java.lang.Object doInvoke(java.lang.Object pvServiceImpl,
                                 java.lang.reflect.Method pvMethod,
                                 java.lang.Object[] pvArgs,
                                 InterceptorHandler pvInterceptorHandler)
Execute the service with the InvocationHandler with delegate to doInvoke. If parameter InterceptorHandler is null, then is calling the method createNewInterceptorHandlerInstance, else is using the parameter InterceptorHandler.

Parameters:
pvServiceImpl -
pvMethod -
pvArgs -
pvInterceptorHandler -
Returns:
The result from the method execution.


Copyright © 2005-2006 Crispy. All Rights Reserved.