NextApp Echo3
v3.0.b4

nextapp.echo.app.reflect
Class IntrospectorFactory

java.lang.Object
  extended by nextapp.echo.app.reflect.IntrospectorFactory

public class IntrospectorFactory
extends java.lang.Object

Factory for creating ClassLoader-specific ObjectIntrospector instances.


Constructor Summary
IntrospectorFactory()
           
 
Method Summary
static void dispose(java.lang.ClassLoader classLoader)
          Disposes an IntrospectorFactory for a specific ClassLoader.
static ObjectIntrospector get(java.lang.String typeName, java.lang.ClassLoader classLoader)
          Retrieves or creates an ObjectIntrospector instance for a specific type from a specific ClassLoader
static void init(java.lang.ClassLoader classLoader)
          Initializes an IntrospectorFactory for a specific ClassLoader This method must be invoked before any calls to get() if manual initialization is enabled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntrospectorFactory

public IntrospectorFactory()
Method Detail

dispose

public static void dispose(java.lang.ClassLoader classLoader)
Disposes an IntrospectorFactory for a specific ClassLoader.

Parameters:
classLoader - the ClassLoader

get

public static ObjectIntrospector get(java.lang.String typeName,
                                     java.lang.ClassLoader classLoader)
                              throws java.lang.ClassNotFoundException
Retrieves or creates an ObjectIntrospector instance for a specific type from a specific ClassLoader

Parameters:
typeName - the type to introspect
classLoader - the ClassLoader
Returns:
an ObjectIntrospector for the appropriate type (a ComponentIntrospector in the event the type is an Component)
Throws:
java.lang.ClassNotFoundException - if the type is not provided by the ClassLoader

init

public static void init(java.lang.ClassLoader classLoader)
Initializes an IntrospectorFactory for a specific ClassLoader This method must be invoked before any calls to get() if manual initialization is enabled.

Parameters:
classLoader - the ClassLoader

NextApp Echo3
v3.0.b4