Package de.hybris.platform.jalo
Class JaloImplementationManager
- java.lang.Object
-
- de.hybris.platform.jalo.JaloImplementationManager
-
public abstract class JaloImplementationManager extends java.lang.ObjectThe basic service for managing a set of jalo implementations. A program can explicitly load jalo-implementations at any time. For example, the my.shoplogic.EJBImplementation is loaded with the following statement: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.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidclearJaloObjectMapping(java.lang.Class jaloClass)removes the special mapping of one jalo objectstatic voidclearTypeClassCache()static BridgeAbstractioncreateJaloObject(Tenant tenant, Item.ItemImpl impl)Creates a Jalo object as a wrapper to the specified BridgeImplementation.static JaloConnectiongetActiveConnection()returns the current Connectionstatic JaloObjectCreatorgetJaloObjectCreator(java.lang.Class jaloClass)Deprecated.since agesstatic voidregisterJaloObject(java.lang.Class jaloClass, JaloObjectCreator creator)registers a new jalo object to the system.static voidreplaceCoreJaloClass(java.lang.Class jaloClass, JaloObjectCreator creator)static voidreplaceCoreJaloClass(java.lang.Class jaloClass, java.lang.Class ownClass)
-
-
-
Method Detail
-
registerJaloObject
public static final void registerJaloObject(java.lang.Class jaloClass, JaloObjectCreator creator)registers a new jalo object to the system.
An example of how this can be done:
JaloImplementationManager.registerJaloObject(JaloImplementationManager.PRODUCT, new JaloObjectCreator() { public BridgeAbstraction createInstance(BridgeInterface impl) { return new MyProduct((ProductImpl) impl); } });- Parameters:
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.
-
replaceCoreJaloClass
public static final void replaceCoreJaloClass(java.lang.Class jaloClass, java.lang.Class ownClass)
-
replaceCoreJaloClass
public static final void replaceCoreJaloClass(java.lang.Class jaloClass, JaloObjectCreator creator)
-
getJaloObjectCreator
@Deprecated(since="ages", forRemoval=false) public static final JaloObjectCreator getJaloObjectCreator(java.lang.Class jaloClass)Deprecated.since ages
-
clearJaloObjectMapping
public static final void clearJaloObjectMapping(java.lang.Class jaloClass)
removes the special mapping of one jalo object- Parameters:
jaloClass-
-
getActiveConnection
public static JaloConnection getActiveConnection() throws JaloConnectException
returns the current Connection- Throws:
JaloConnectException
-
createJaloObject
public static final BridgeAbstraction createJaloObject(Tenant tenant, Item.ItemImpl impl)
Creates a Jalo object as a wrapper to the specified BridgeImplementation.Note: This method should not be used by clients. Internal use only.
- Parameters:
impl-
-
clearTypeClassCache
public static void clearTypeClassCache()
-
-