Package org.oddjob.arooa.reflect
Interface ArooaClass
- All Known Implementing Classes:
DynaArooaClass,SimpleArooaClass,WrapDynaArooaClass
public interface ArooaClass
A container for type information that can be more than just class,
for instance when the type is a BeanUtils
DynaBean.
Implementations should implement equals and hashCode so their
BeanOverviews may be cached. This is because creating them
is possibly an expensive operation due to introspection (although this
hasn't been proved by the developer).
- Author:
- rob
-
Method Summary
Modifier and TypeMethodDescriptionClass<?> forClass()Provide the actual Java class this is for.getBeanOverview(PropertyAccessor accessor) Get an overview of the class.Create a new instance of the Object this represents.
-
Method Details
-
forClass
Class<?> forClass()Provide the actual Java class this is for.- Returns:
- A class. Never null.
-
newInstance
Create a new instance of the Object this represents.- Returns:
- The object. Never null.
- Throws:
ArooaInstantiationException- If creation fails.
-
getBeanOverview
Get an overview of the class.- Parameters:
accessor- A property accessor.- Returns:
- An overview of the class.
-