Package org.openxava.component.parse
Class AnnotatedClassParser
- java.lang.Object
-
- org.openxava.component.parse.AnnotatedClassParser
-
- All Implemented Interfaces:
IComponentParser
public class AnnotatedClassParser extends java.lang.Object implements IComponentParser
Parse EJB3 Entities (POJOs with JPA annotations) into OpenXava components.- Author:
- Javier Paniza
-
-
Constructor Summary
Constructors Constructor Description AnnotatedClassParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetaValidator
createEntityValidator(EntityValidator validator)
Creates a MetaValidator for entity validation from a EntityValidator annotation.static MetaValidator
createPropertyValidator(PropertyValidator validator)
Creates a MetaValidator for property validation from a PropertyValidator annotation.static java.util.Collection<java.lang.String>
getManagedClassNames()
static java.util.Collection<java.lang.String>
getManagedClassNamesFromFileClassPath()
Explores the filesystem where the classes are, instead of using a Hibernate connection.IPersistenceProvider
getPersistenceProvider()
static boolean
isForView(java.lang.String view, java.lang.String forViews, java.lang.String notForViews)
MetaComponent
parse(java.lang.String name)
-
-
-
Method Detail
-
parse
public MetaComponent parse(java.lang.String name) throws java.lang.Exception
- Specified by:
parse
in interfaceIComponentParser
- Throws:
java.lang.Exception
-
getPersistenceProvider
public IPersistenceProvider getPersistenceProvider()
- Specified by:
getPersistenceProvider
in interfaceIComponentParser
-
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 java.util.Collection<java.lang.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 java.util.Collection<java.lang.String> getManagedClassNames()
-
isForView
public static boolean isForView(java.lang.String view, java.lang.String forViews, java.lang.String notForViews)
- Since:
- 7.4
-
-