Tuscany Core

org.apache.tuscany.core.config.impl
Class Java5ComponentTypeIntrospector

java.lang.Object
  extended by org.apache.tuscany.core.config.impl.Java5ComponentTypeIntrospector
All Implemented Interfaces:
ComponentTypeIntrospector

public class Java5ComponentTypeIntrospector
extends Object
implements ComponentTypeIntrospector

Introspects Java annotation-based metata data

Version:
$Rev: 408581 $ $Date: 2006-05-21 23:34:24 -0700 (Sun, 21 May 2006) $

Field Summary
protected  String name
           
 
Constructor Summary
Java5ComponentTypeIntrospector()
           
Java5ComponentTypeIntrospector(AssemblyFactory factory)
           
 
Method Summary
 void init()
           
 ComponentType introspect(Class<?> implClass)
          Visits the given implementation type and calls back to ImplementationProcessors registered with this introspector to build up a ComponentType
 ComponentType introspect(Class<?> implClass, ComponentType compType)
          Completes the given componentType definition by introspecting a Java Class.
 void registerProcessor(ImplementationProcessor processor)
          Registers an annotation processor
 void setFactory(SystemAssemblyFactory factory)
           
 void unregisterProcessor(ImplementationProcessor processor)
          De-registers an annotation processor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name
Constructor Detail

Java5ComponentTypeIntrospector

public Java5ComponentTypeIntrospector()

Java5ComponentTypeIntrospector

public Java5ComponentTypeIntrospector(AssemblyFactory factory)
Method Detail

setFactory

public void setFactory(SystemAssemblyFactory factory)

init

public void init()

registerProcessor

public void registerProcessor(ImplementationProcessor processor)
Description copied from interface: ComponentTypeIntrospector
Registers an annotation processor

Specified by:
registerProcessor in interface ComponentTypeIntrospector

unregisterProcessor

public void unregisterProcessor(ImplementationProcessor processor)
Description copied from interface: ComponentTypeIntrospector
De-registers an annotation processor

Specified by:
unregisterProcessor in interface ComponentTypeIntrospector

introspect

public ComponentType introspect(Class<?> implClass)
                         throws ConfigurationLoadException
Visits the given implementation type and calls back to ImplementationProcessors registered with this introspector to build up a ComponentType

Specified by:
introspect in interface ComponentTypeIntrospector
Parameters:
implClass - the class to inspect
Returns:
ComponentType representing the implementation type metadata
Throws:
ConfigurationLoadException - if there is an error introspecting the implementation type

introspect

public ComponentType introspect(Class<?> implClass,
                                ComponentType compType)
                         throws ConfigurationLoadException
Description copied from interface: ComponentTypeIntrospector
Completes the given componentType definition by introspecting a Java Class.

Specified by:
introspect in interface ComponentTypeIntrospector
Parameters:
implClass - the class to inspect
Returns:
a componentType definition
Throws:
ConfigurationLoadException - if the Class does not define a valid component type

Tuscany Core

-