Package org.adempiere.webui.factory
Class AnnotationBasedFormFactory
java.lang.Object
org.adempiere.base.AnnotationBasedFactory
org.adempiere.webui.factory.AnnotationBasedFormFactory
- All Implemented Interfaces:
IFormFactory
- Direct Known Subclasses:
DefaultAnnotationBasedFormFactory
public abstract class AnnotationBasedFormFactory
extends AnnotationBasedFactory
implements IFormFactory
Scan, discover and register classes with
Form
annotation.- Author:
- hengsin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(org.osgi.service.component.ComponentContext context) Perform scanConstructor<?>
getConstructor
(String formName) protected abstract String[]
Get list of package to scan for annotationnewFormInstance
(String formName) Create new form instanceMethods inherited from class org.adempiere.base.AnnotationBasedFactory
blockWhileScanning, getExecutorService, getMaxThreads, getScanFailureHandler, signalScanCompletion
-
Constructor Details
-
AnnotationBasedFormFactory
public AnnotationBasedFormFactory()Default constructor
-
-
Method Details
-
newFormInstance
Description copied from interface:IFormFactory
Create new form instance- Specified by:
newFormInstance
in interfaceIFormFactory
- Returns:
- new form instance
-
getConstructor
- Parameters:
formName
-- Returns:
- class default constructor
-
getPackages
Get list of package to scan for annotation- Returns:
- packages to scan
-
activate
public void activate(org.osgi.service.component.ComponentContext context) throws ClassNotFoundException Perform scan- Parameters:
context
-- Throws:
ClassNotFoundException
-