net.sf.crispy
Class ExecutorDecorator

java.lang.Object
  extended bynet.sf.crispy.Executor
      extended bynet.sf.crispy.ExecutorDecorator

public class ExecutorDecorator
extends Executor

Decorator for all Executor implemantations. Before execute the method execute, test the method for the remoting (for internal use).

Author:
Linke

Field Summary
 
Fields inherited from class net.sf.crispy.Executor
log
 
Constructor Summary
ExecutorDecorator(Executor pvExecutor)
           
 
Method Summary
 java.lang.Object createInvocationStrategy(java.lang.Class pvProxyClass, java.lang.reflect.Method pvMethod)
           
 java.lang.Object execute(java.lang.Class pvProxyClass, java.lang.Object pvProxy, java.lang.reflect.Method pvMethod, java.lang.Object[] pvArgs)
          Make the invocation of the services.
 InvocationStrategy getDefaultInvocationStrategy()
          Strategy for invocation the remote service.
 java.lang.String getDefaultUrlAndPort()
          Get default url and port.
 Executor getExecutor()
           
static java.lang.Object notRemoteMethod(java.lang.reflect.Method pvMethod, java.lang.Class pvProxyClass)
           
 
Methods inherited from class net.sf.crispy.Executor
getInvocationStrategy, getProperties, getUrlAndPort, setInvocationStrategy, setProperties, setUrlAndPort, withConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutorDecorator

public ExecutorDecorator(Executor pvExecutor)
Method Detail

getExecutor

public Executor getExecutor()

notRemoteMethod

public static java.lang.Object notRemoteMethod(java.lang.reflect.Method pvMethod,
                                               java.lang.Class pvProxyClass)

createInvocationStrategy

public java.lang.Object createInvocationStrategy(java.lang.Class pvProxyClass,
                                                 java.lang.reflect.Method pvMethod)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

getDefaultUrlAndPort

public java.lang.String getDefaultUrlAndPort()
Description copied from class: Executor
Get default url and port. If no url and port is in properties.

Specified by:
getDefaultUrlAndPort in class Executor
Returns:
Default url and port.

getDefaultInvocationStrategy

public InvocationStrategy getDefaultInvocationStrategy()
Description copied from class: Executor
Strategy for invocation the remote service.

Overrides:
getDefaultInvocationStrategy in class Executor
Returns:
InvocationStrategy

execute

public java.lang.Object execute(java.lang.Class pvProxyClass,
                                java.lang.Object pvProxy,
                                java.lang.reflect.Method pvMethod,
                                java.lang.Object[] pvArgs)
                         throws java.lang.Exception
Description copied from class: Executor
Make the invocation of the services.

Specified by:
execute in class Executor
Parameters:
pvProxyClass - Service interface. Class of the invoked service.
pvProxy -
pvMethod - Method to call.
pvArgs - Parameter of the method.
Returns:
Result of the execute method.
Throws:
java.lang.Exception


Copyright © 2005-2006 Crispy. All Rights Reserved.