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 Details

    • forClass

      Class<?> forClass()
      Provide the actual Java class this is for.
      Returns:
      A class. Never null.
    • newInstance

      Object newInstance() throws ArooaInstantiationException
      Create a new instance of the Object this represents.
      Returns:
      The object. Never null.
      Throws:
      ArooaInstantiationException - If creation fails.
    • getBeanOverview

      BeanOverview getBeanOverview(PropertyAccessor accessor)
      Get an overview of the class.
      Parameters:
      accessor - A property accessor.
      Returns:
      An overview of the class.