net.sf.crispy.impl
Class RmiExecutor
java.lang.Object
net.sf.crispy.Executor
net.sf.crispy.impl.RmiExecutor
- public class RmiExecutor
- extends Executor
Remote-Call with Remote Method Invocation (RMI).
- Author:
- Linke
Method Summary |
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. |
java.lang.String |
getDefaultUrlAndPort()
Get default url and port. |
boolean |
withConverter()
If true , then invoke before execute method Converter.makeSimple()
and after call Converter.makeComplex . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_URL_AND_PORT
public static final java.lang.String DEFAULT_URL_AND_PORT
- See Also:
- Constant Field Values
- uml
- name="dEFAULT_URL_AND_PORT"
- uml
- inverse=":java.lang.String" changeability="frozen" multiplicity=
"(0 1)"
LOOKUP_NAME
public static final java.lang.String LOOKUP_NAME
- See Also:
- Constant Field Values
RmiExecutor
public RmiExecutor()
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.
withConverter
public boolean withConverter()
- Description copied from class:
Executor
- If
true
, then invoke before execute method Converter.makeSimple()
and after call Converter.makeComplex
.
- Overrides:
withConverter
in class Executor
- Returns:
- Default is
false
.
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.