Package org.bgerp.app.cfg.bean

# Class Bean

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

public class Bean extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Bean()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static org.reflections.Reflections`
  `classes()`
  `static Class<?>`
  `getClass(String name)`
  Provides class by a simple `Bean` of a full class name.
  `static final void`
  `loadBeanClasses()`
  Reloads statically loaded and `Custom` `Bean` annotated classes.
  `static final <T> T`
  `newInstance(String name)`
  Creates an object of a given class, loaded with `getClass(String)`.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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`