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[]
newFormInstance
(String formName) Methods inherited from class org.adempiere.base.AnnotationBasedFactory
blockWhileScanning, getExecutorService, getMaxThreads, getScanFailureHandler, signalScanCompletion
-
Constructor Details
-
AnnotationBasedFormFactory
public AnnotationBasedFormFactory()Default constructor
-
-
Method Details
-
newFormInstance
- Specified by:
newFormInstance
in interfaceIFormFactory
- Returns:
- new form instance
-
getConstructor
- Parameters:
formName
-- Returns:
- class default constructor
-
getPackages
- Returns:
- packages to scan
-
activate
public void activate(org.osgi.service.component.ComponentContext context) throws ClassNotFoundException Perform scan- Parameters:
context
-- Throws:
ClassNotFoundException
-