Package de.hybris.platform.jalo
Class JaloImplementationManager
java.lang.Object
de.hybris.platform.jalo.JaloImplementationManager
The 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
Modifier and TypeMethodDescriptionstatic final voidclearJaloObjectMapping(Class jaloClass) removes the special mapping of one jalo objectstatic voidstatic final BridgeAbstractioncreateJaloObject(Tenant tenant, Item.ItemImpl impl) Creates a Jalo object as a wrapper to the specified BridgeImplementation.static JaloConnectionreturns the current Connectionstatic final JaloObjectCreatorgetJaloObjectCreator(Class jaloClass) Deprecated.since agesstatic final voidregisterJaloObject(Class jaloClass, JaloObjectCreator creator) registers a new jalo object to the system.static final voidreplaceCoreJaloClass(Class jaloClass, JaloObjectCreator creator) static final voidreplaceCoreJaloClass(Class jaloClass, Class ownClass)
-
Method Details
-
registerJaloObject
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
-
replaceCoreJaloClass
-
getJaloObjectCreator
@Deprecated(since="ages", forRemoval=false) public static final JaloObjectCreator getJaloObjectCreator(Class jaloClass) Deprecated.since ages -
clearJaloObjectMapping
removes the special mapping of one jalo object- Parameters:
jaloClass-
-
getActiveConnection
returns the current Connection- Throws:
JaloConnectException
-
createJaloObject
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()
-