Class AnnotatedClassParser

java.lang.Object
org.openxava.component.parse.AnnotatedClassParser
All Implemented Interfaces:
IComponentParser

public class AnnotatedClassParser extends Object implements IComponentParser
Parse EJB3 Entities (POJOs with JPA annotations) into OpenXava components.

Author:
Javier Paniza
  • Constructor Details

    • AnnotatedClassParser

      public AnnotatedClassParser()
  • Method Details

    • parse

      public MetaComponent parse(String name) throws Exception
      Specified by:
      parse in interface IComponentParser
      Throws:
      Exception
    • getPersistenceProvider

      public IPersistenceProvider getPersistenceProvider()
      Specified by:
      getPersistenceProvider in interface IComponentParser
    • createEntityValidator

      public static MetaValidator createEntityValidator(EntityValidator validator)
      Creates a MetaValidator for entity validation from a EntityValidator annotation.

    • createPropertyValidator

      public static MetaValidator createPropertyValidator(PropertyValidator validator)
      Creates a MetaValidator for property validation from a PropertyValidator annotation.

    • getManagedClassNamesFromFileClassPath

      public static Collection<String> getManagedClassNamesFromFileClassPath()
      Explores the filesystem where the classes are, instead of using a Hibernate connection.

      Since:
      7.5 Before it was called friendMetaApplicationGetManagedClassNames()
    • getManagedClassNames

      public static Collection<String> getManagedClassNames()
    • isForView

      public static boolean isForView(String view, String forViews, String notForViews)
      Since:
      7.4