public abstract class JaloImplementationManager extends 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(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(Class jaloClass)
Deprecated.
|
static void |
registerJaloObject(Class jaloClass,
JaloObjectCreator creator)
registers a new jalo object to the system.
|
static void |
replaceCoreJaloClass(Class jaloClass,
Class ownClass) |
static void |
replaceCoreJaloClass(Class jaloClass,
JaloObjectCreator creator) |
public static final void registerJaloObject(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(Class jaloClass, JaloObjectCreator creator)
@Deprecated public static final JaloObjectCreator getJaloObjectCreator(Class jaloClass)
public static final void clearJaloObjectMapping(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 © 2017 SAP SE. All Rights Reserved.