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 Details

    • AnnotationBasedFormFactory

      public AnnotationBasedFormFactory()
      Default constructor
  • Method Details

    • newFormInstance

      public ADForm newFormInstance(String formName)
      Specified by:
      newFormInstance in interface IFormFactory
      Returns:
      new form instance
    • getConstructor

      public Constructor<?> getConstructor(String formName)
      Parameters:
      formName -
      Returns:
      class default constructor
    • getPackages

      protected abstract String[] getPackages()
      Returns:
      packages to scan
    • activate

      public void activate(org.osgi.service.component.ComponentContext context) throws ClassNotFoundException
      Perform scan
      Parameters:
      context -
      Throws:
      ClassNotFoundException