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 regiser classes withForm
annotation.- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description AnnotationBasedFormFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
activate(org.osgi.service.component.ComponentContext context)
Constructor<?>
getConstructor(String formName)
protected abstract String[]
getPackages()
ADForm
newFormInstance(String formName)
-
Methods inherited from class org.adempiere.base.AnnotationBasedFactory
blockWhileScanning, getExecutorService, getMaxThreads, getScanFailureHandler, signalScanCompletion
-
-
-
-
Method Detail
-
newFormInstance
public ADForm newFormInstance(String formName)
- Specified by:
newFormInstance
in interfaceIFormFactory
- Returns:
- new form instance
-
getConstructor
public Constructor<?> getConstructor(String formName)
- Parameters:
formName
-- Returns:
- class default constructor
-
getPackages
protected abstract String[] getPackages()
-
activate
public void activate(org.osgi.service.component.ComponentContext context) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
-