Class JaloImplementationManager

java.lang.Object
de.hybris.platform.jalo.JaloImplementationManager

public abstract class JaloImplementationManager extends Object
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 Details

    • registerJaloObject

      public static final void registerJaloObject(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(Class jaloClass, Class ownClass)
    • replaceCoreJaloClass

      public static final void replaceCoreJaloClass(Class jaloClass, JaloObjectCreator creator)
    • getJaloObjectCreator

      @Deprecated(since="ages", forRemoval=false) public static final JaloObjectCreator getJaloObjectCreator(Class jaloClass)
      Deprecated.
      since ages
    • clearJaloObjectMapping

      public static final void clearJaloObjectMapping(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()