Package org.bgerp.app.bean
Class Bean
java.lang.Object
org.bgerp.app.bean.Bean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.reflections.Reflections
classes()
static Class
<?> Provides class by a simpleBean
of a full class name.static final void
static final <T> T
newInstance
(String name) Creates an object of a given class, loaded withgetClass(String)
.
-
Constructor Details
-
Bean
public Bean()
-
-
Method Details
-
loadBeanClasses
public static final void loadBeanClasses() -
classes
public static org.reflections.Reflections classes()- Returns:
- reflection object, configured for statically loaded from
PluginManager.ERP_PACKAGES
andCustom
classes.
-
getClass
- Parameters:
name
- the simpleBean
of the full class name.- Returns:
- Throws:
ClassNotFoundException
-
newInstance
Creates an object of a given class, loaded withgetClass(String)
.- Parameters:
className
- the full class name or a simpleBean
name.args
- optional constructor arguments.- Returns:
- created object instance.
- Throws:
ClassNotFoundException
-