Class Bean

java.lang.Object
org.bgerp.app.bean.Bean

public class Bean extends Object
  • Constructor Details

    • Bean

      public Bean()
  • Method Details

    • loadBeanClasses

      public static final void loadBeanClasses()
      Reloads statically loaded and Custom Bean annotated classes.
    • classes

      public static org.reflections.Reflections classes()
      Returns:
      reflection object, configured for statically loaded from PluginManager.ERP_PACKAGES and Custom classes.
    • getClass

      public static Class<?> getClass(String name) throws ClassNotFoundException
      Provides class by a simple Bean of a full class name. Both Custom and normal classes are checked.
      Parameters:
      name - the simple Bean of the full class name.
      Returns:
      Throws:
      ClassNotFoundException
    • newInstance

      public static final <T> T newInstance(String name) throws ClassNotFoundException
      Creates an object of a given class, loaded with getClass(String).
      Parameters:
      className - the full class name or a simple Bean name.
      args - optional constructor arguments.
      Returns:
      created object instance.
      Throws:
      ClassNotFoundException