net.sf.crispy.server
Class ServiceEndpointImpl

java.lang.Object
  extended bynet.sf.crispy.server.ServiceEndpointImpl
All Implemented Interfaces:
ServiceEndpoint

public class ServiceEndpointImpl
extends java.lang.Object
implements ServiceEndpoint

The default implementation of the ServiceEndpoint.

Since:
1.1.0
Author:
Linke

Constructor Summary
ServiceEndpointImpl()
           
 
Method Summary
 InterceptorHandler createNewInterceptorHandlerInstance()
          If don't set a InterceptorHandlerCreator, than create a new InterceptorHandler instance.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceEndpointImpl

public ServiceEndpointImpl()
Method Detail

setInterceptorHandlerCreator

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

Specified by:
setInterceptorHandlerCreator in interface ServiceEndpoint
Parameters:
pvCreator -

getInterceptorHandlerCreator

public InterceptorHandlerCreator getInterceptorHandlerCreator()
Description copied from interface: ServiceEndpoint
Get a implementation for the interface InterceptorHandlerCreator.

Specified by:
getInterceptorHandlerCreator in interface ServiceEndpoint
Returns:
The InterceptorHandlerCreator implementation.

createNewInterceptorHandlerInstance

public final InterceptorHandler createNewInterceptorHandlerInstance()
If don't set a InterceptorHandlerCreator, than create a new InterceptorHandler instance.

Specified by:
createNewInterceptorHandlerInstance in interface ServiceEndpoint
Returns:
By every call create a new InterceptorHandler instance.

doInvoke

public final java.lang.Object doInvoke(java.lang.Object pvServiceImpl,
                                       java.lang.reflect.Method pvMethod,
                                       java.lang.Object[] pvArgs,
                                       InterceptorHandler pvInterceptorHandler)
Description copied from interface: ServiceEndpoint
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.

Specified by:
doInvoke in interface ServiceEndpoint
Parameters:
pvServiceImpl -
pvMethod -
pvArgs -
pvInterceptorHandler -
Returns:
The result from the method execution.


Copyright © 2005-2006 Crispy. All Rights Reserved.