Class DynamicLoader

java.lang.Object
com.portal.app.ccare.comp.DynamicLoader

public class DynamicLoader extends Object
  • Constructor Details

    • DynamicLoader

      public DynamicLoader()
  • Method Details

    • createClass

      public static Object createClass(String className) throws ClassNotFoundException
      Used to dynamically create instances of Customer Center beans and drilldowns and provide the ability for customers to override them. Specify the fully qualified class name for the Class you wish to create. This method will look through global properties to determine if that class has been overridden. If overridden, you'll get back an instance of the customized Class. If not, you'll get back an instance of the Class you have requested.

      The property lookup will use the name of the class passed in with ".subclass" tacked on. So to override the class com.portal.Foo a customer would create a property entry as follows
      com.portal.Foo.subclass=com.mypkg.Bar
      Parameters:
      className - The class you want to dynamically instantiate
      Throws:
      ClassNotFoundException