za.org.coefficient.util.common
Class InvokerFactory
java.lang.Object
za.org.coefficient.util.common.InvokerFactory
public class InvokerFactory
- extends java.lang.Object
This is used to get a handle on an object capable of providing us with
a module invoker
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RUN_AS_EJB
public static boolean RUN_AS_EJB
RUN_AS_TEST
public static boolean RUN_AS_TEST
RUN_AS_WEBAPP
public static boolean RUN_AS_WEBAPP
INVOKER_LOCAL_EJB_IMPLEMENTATION
private static java.lang.String INVOKER_LOCAL_EJB_IMPLEMENTATION
INVOKER_LOCAL_WEBAPP_IMPLEMENTATION
private static java.lang.String INVOKER_LOCAL_WEBAPP_IMPLEMENTATION
INVOKER_REMOTE_EJB_IMPLEMENTATION
private static java.lang.String INVOKER_REMOTE_EJB_IMPLEMENTATION
INVOKER_REMOTE_EJB_JNDI_NAME
private static java.lang.String INVOKER_REMOTE_EJB_JNDI_NAME
INVOKER_LOCAL_TEST_IMPLEMENTATION
private static java.lang.String INVOKER_LOCAL_TEST_IMPLEMENTATION
CREATE
private static final java.lang.String CREATE
- See Also:
- Constant Field Values
local_mi
private static Invoker local_mi
remote_mi
private static java.lang.Object remote_mi
lock
private static java.lang.Object lock
propertiesFileName
private static java.lang.String propertiesFileName
InvokerFactory
public InvokerFactory()
getInvoker
public static Invoker getInvoker()
throws java.lang.Exception
- Returns:
- the correct invoker to use in the app.
- Throws:
java.lang.Exception
getRemoteInvoker
public static Invoker getRemoteInvoker()
throws java.lang.Exception
- This should be used by objects that are separated by a remote boundary.
You should also recognize that the parameters passed into a remote call
will be passed by value and not by reference. In the case of a module
invocation this means that the CoefficientContext that is sent across
and modified will not be modified by reference. Therefore you should set
your reference to the context to the returned value so that all changes
will be propagated back across the remote boundary.
- Throws:
java.lang.Exception
init
private static void init()
initProperties
private static void initProperties()
Copyright CSIR. All Rights Reserved.