public abstract class JaloImplementationManager
extends java.lang.Object
Class.forName(my.shoplogic.EJBImplementation.class.getName());When the method getConnection is called, the ImplementationManager will attempt to locate a suitable implementation from amongst those loaded at initialization and those loaded explicitly using the same classloader as the current applet or application.
| Modifier and Type | Method and Description |
|---|---|
static void |
clearJaloObjectMapping(java.lang.Class jaloClass)
removes the special mapping of one jalo object
|
static void |
clearTypeClassCache() |
static BridgeAbstraction |
createJaloObject(Tenant tenant,
BridgeInterface impl)
Creates a Jalo object as a wrapper to the specified BridgeImplementation.
|
static JaloConnection |
getActiveConnection()
returns the current Connection
|
static JaloObjectCreator |
getJaloObjectCreator(java.lang.Class jaloClass)
Deprecated.
since ages
|
static void |
registerJaloObject(java.lang.Class jaloClass,
JaloObjectCreator creator)
registers a new jalo object to the system.
|
static void |
replaceCoreJaloClass(java.lang.Class jaloClass,
java.lang.Class ownClass) |
static void |
replaceCoreJaloClass(java.lang.Class jaloClass,
JaloObjectCreator creator) |
public static final void registerJaloObject(java.lang.Class jaloClass,
JaloObjectCreator creator)
JaloImplementationManager.registerJaloObject(JaloImplementationManager.PRODUCT, new JaloObjectCreator()
{
public BridgeAbstraction createInstance(BridgeInterface impl)
{
return new MyProduct((ProductImpl) impl);
}
});
jaloClass - the type of the object to register to the system.creator - the creator which will be used everytime an instance of this jalo object type is created.public static final void replaceCoreJaloClass(java.lang.Class jaloClass,
java.lang.Class ownClass)
public static final void replaceCoreJaloClass(java.lang.Class jaloClass,
JaloObjectCreator creator)
@Deprecated public static final JaloObjectCreator getJaloObjectCreator(java.lang.Class jaloClass)
public static final void clearJaloObjectMapping(java.lang.Class jaloClass)
jaloClass - public static JaloConnection getActiveConnection() throws JaloConnectException
JaloConnectExceptionpublic static final BridgeAbstraction createJaloObject(Tenant tenant, BridgeInterface impl)
Note: This method should not be used by clients. Internal use only.
impl - public static void clearTypeClassCache()
Copyright © 2018 SAP SE. All Rights Reserved.