Package ipsk.beans
Class ExtendedIntrospector
- java.lang.Object
-
- ipsk.beans.ExtendedIntrospector
-
public class ExtendedIntrospector extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ExtendedIntrospector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExtBeanInfo
getExtendedBeanInfo(java.lang.Class<?> entityClass)
Creates extended bean info.static ExtBeanInfo
getExtendedBeanInfo(java.lang.Class<?> beanClass, boolean searchEntitySuperClass, boolean acceptPersistenceClassesOnly)
Creates bean info for persistence entity class.
-
-
-
Method Detail
-
getExtendedBeanInfo
public static ExtBeanInfo getExtendedBeanInfo(java.lang.Class<?> entityClass) throws java.beans.IntrospectionException
Creates extended bean info. In this case the annotations would be not visible. Annotations related to identity of the entity, display order and localizations are processed.- Parameters:
entityClass
-- Returns:
- extended bean info
- Throws:
java.beans.IntrospectionException
-
getExtendedBeanInfo
public static ExtBeanInfo getExtendedBeanInfo(java.lang.Class<?> beanClass, boolean searchEntitySuperClass, boolean acceptPersistenceClassesOnly) throws java.beans.IntrospectionException
Creates bean info for persistence entity class. Tries to find superclass if searchEntityClass is true with Entity annotation, because some JPA implementations (OpenJPA and Hibernate for instance) use subclasses of the original entity class. In this case the annotations would be not visible. Annotations related to identity of the entity, display order and localizations are processed.- Parameters:
beanClass
- class of entity beansearchEntitySuperClass
- if true searches entity annotation in super classes- Returns:
- extended bean info
- Throws:
java.beans.IntrospectionException
-
-