Class Bean
java.lang.Object
org.bgerp.app.cfg.bean.Bean
Registry and factory of
@Bean-annotated classes, created by name.-
Method Summary
Modifier and TypeMethodDescriptionstatic org.reflections.Reflectionsclasses()Reflections over ERP and custom classes.static Class<?> Provides class by a simpleBeanof a full class name.static final voidstatic final <T> TnewInstance(String name) Creates an object of a given class, loaded withgetClass(String).
-
Method Details
-
loadBeanClasses
-
classes
public static org.reflections.Reflections classes()Reflections over ERP and custom classes.- Returns:
- reflection object, configured for statically loaded from
PluginManager.ERP_PACKAGESandCustomclasses.
-
getClass
- Parameters:
name- the simpleBeanof the full class name.- Returns:
- the class
- Throws:
ClassNotFoundException- if the class is not found
-
newInstance
Creates an object of a given class, loaded withgetClass(String).- Type Parameters:
T- created object type- Parameters:
name- the full class name or a simpleBeanname.- Returns:
- created object instance.
- Throws:
ClassNotFoundException- if the class is not found
-