Tuscany Core

org.apache.tuscany.core.config
Interface ComponentTypeIntrospector

All Known Implementing Classes:
Java5ComponentTypeIntrospector

public interface ComponentTypeIntrospector

Interface for implementations that are able create SCA definitions by inspecting Java classes.

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

Method Summary
 ComponentType introspect(Class<?> implClass)
          Create a componentType definition by introspecting a Java Class.
 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 unregisterProcessor(ImplementationProcessor processor)
          De-registers an annotation processor
 

Method Detail

introspect

ComponentType introspect(Class<?> implClass)
                         throws ConfigurationLoadException
Create a componentType definition by introspecting a Java Class.

Parameters:
implClass - the class to inspect
Returns:
a componentType definition
Throws:
ConfigurationLoadException - if the Class does not define a valid component type

introspect

ComponentType introspect(Class<?> implClass,
                         ComponentType compType)
                         throws ConfigurationLoadException
Completes the given componentType definition by introspecting a Java Class.

Parameters:
implClass - the class to inspect
Returns:
a componentType definition
Throws:
ConfigurationLoadException - if the Class does not define a valid component type

registerProcessor

void registerProcessor(ImplementationProcessor processor)
Registers an annotation processor


unregisterProcessor

void unregisterProcessor(ImplementationProcessor processor)
De-registers an annotation processor


Tuscany Core

-