Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.implementation.java
Class ImplementationProcessorExtension

java.lang.Object
  extended by org.apache.tuscany.spi.implementation.java.ImplementationProcessorExtension
All Implemented Interfaces:
ImplementationProcessor
Direct Known Subclasses:
AbstractPropertyProcessor

public abstract class ImplementationProcessorExtension
extends Object
implements ImplementationProcessor

A convenience class for annotation processors which alleviates the need to implement unused callbacks

Version:
$Rev: 441935 $ $Date: 2006-09-10 02:57:47 -0700 (Sun, 10 Sep 2006) $

Constructor Summary
ImplementationProcessorExtension()
           
 
Method Summary
 void destroy()
           
 void init()
           
 void setRegistry(IntrospectionRegistry registry)
           
<T> void
visitClass(CompositeComponent parent, Class<T> clazz, PojoComponentType<JavaMappedService,JavaMappedReference,JavaMappedProperty<?>> type, DeploymentContext context)
          A callback received when the component implementation class is first loaded
<T> void
visitConstructor(CompositeComponent parent, Constructor<T> constructor, PojoComponentType<JavaMappedService,JavaMappedReference,JavaMappedProperty<?>> type, DeploymentContext context)
          A callback received as the component implementation's constructor used for instantiation by the runtime is evaluated.
<T> void
visitEnd(CompositeComponent parent, Class<T> clazz, PojoComponentType<JavaMappedService,JavaMappedReference,JavaMappedProperty<?>> type, DeploymentContext context)
          The final callback received when all other callbacks during evaluation of the component implementation have been issued
 void visitField(CompositeComponent parent, Field field, PojoComponentType<JavaMappedService,JavaMappedReference,JavaMappedProperty<?>> type, DeploymentContext context)
          A callback received as the component implementation's public and protected fields are evaluated
 void visitMethod(CompositeComponent parent, Method method, PojoComponentType<JavaMappedService,JavaMappedReference,JavaMappedProperty<?>> type, DeploymentContext context)
          A callback received as the component implementation's public and protected methods are evaluated
<T> void
visitSuperClass(CompositeComponent parent, Class<T> clazz, PojoComponentType<JavaMappedService,JavaMappedReference,JavaMappedProperty<?>> type, DeploymentContext context)
          A callback received as the component implementation class hierarchy is evaluated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImplementationProcessorExtension

public ImplementationProcessorExtension()
Method Detail

setRegistry

public void setRegistry(IntrospectionRegistry registry)

init

public void init()

destroy

public void destroy()

visitClass

public <T> void visitClass(CompositeComponent parent,
                           Class<T> clazz,
                           PojoComponentType<JavaMappedService,JavaMappedReference,JavaMappedProperty<?>> type,
                           DeploymentContext context)
                throws ProcessingException
Description copied from interface: ImplementationProcessor
A callback received when the component implementation class is first loaded

Specified by:
visitClass in interface ImplementationProcessor
Parameters:
parent - the parent composite
clazz - the component implementation class
type - the incomplete component type associated with the implementation class
context - the current deployment context
Throws:
ProcessingException - if an error is encountered while processing metadata

visitSuperClass

public <T> void visitSuperClass(CompositeComponent parent,
                                Class<T> clazz,
                                PojoComponentType<JavaMappedService,JavaMappedReference,JavaMappedProperty<?>> type,
                                DeploymentContext context)
                     throws ProcessingException
Description copied from interface: ImplementationProcessor
A callback received as the component implementation class hierarchy is evaluated

Specified by:
visitSuperClass in interface ImplementationProcessor
Parameters:
parent - the parent composite
clazz - the superclass in the component implmentation's class hierarchy
type - the incomplete component type associated with the implementation class
context - the current deployment context
Throws:
ProcessingException - if an error is encountered while processing metadata

visitMethod

public void visitMethod(CompositeComponent parent,
                        Method method,
                        PojoComponentType<JavaMappedService,JavaMappedReference,JavaMappedProperty<?>> type,
                        DeploymentContext context)
                 throws ProcessingException
Description copied from interface: ImplementationProcessor
A callback received as the component implementation's public and protected methods are evaluated

Specified by:
visitMethod in interface ImplementationProcessor
Parameters:
parent - the parent composite
method - the current public or protected method being evaluated
type - the incomplete component type associated with the implementation class
context - the current deployment context
Throws:
ProcessingException - if an error is encountered while processing metadata

visitConstructor

public <T> void visitConstructor(CompositeComponent parent,
                                 Constructor<T> constructor,
                                 PojoComponentType<JavaMappedService,JavaMappedReference,JavaMappedProperty<?>> type,
                                 DeploymentContext context)
                      throws ProcessingException
Description copied from interface: ImplementationProcessor
A callback received as the component implementation's constructor used for instantiation by the runtime is evaluated. If an implementation contains more than one constructor, the constructor passed to the callback will be chosen according to the algorithm described in the SCA Java Client and Implementation Model Specification.

Specified by:
visitConstructor in interface ImplementationProcessor
Parameters:
parent - the parent composite
constructor - the constructor used for instantiating component implementation instances
type - the incomplete component type associated with the implementation class
context - the current deployment context
Throws:
ProcessingException - if an error is encountered while processing metadata

visitField

public void visitField(CompositeComponent parent,
                       Field field,
                       PojoComponentType<JavaMappedService,JavaMappedReference,JavaMappedProperty<?>> type,
                       DeploymentContext context)
                throws ProcessingException
Description copied from interface: ImplementationProcessor
A callback received as the component implementation's public and protected fields are evaluated

Specified by:
visitField in interface ImplementationProcessor
Parameters:
parent - the parent composite
field - the current public or protected field being evaluated
type - the incomplete component type associated with the implementation class
context - the current deployment context
Throws:
ProcessingException - if an error is encountered while processing metadata

visitEnd

public <T> void visitEnd(CompositeComponent parent,
                         Class<T> clazz,
                         PojoComponentType<JavaMappedService,JavaMappedReference,JavaMappedProperty<?>> type,
                         DeploymentContext context)
              throws ProcessingException
Description copied from interface: ImplementationProcessor
The final callback received when all other callbacks during evaluation of the component implementation have been issued

Specified by:
visitEnd in interface ImplementationProcessor
Parameters:
parent - the parent composite
clazz - the component implementation class
type - the incomplete component type associated with the implementation class
context - the current deployment context
Throws:
ProcessingException - if an error is encountered while processing metadata

Apache Tuscany SCA Kernel Sub-Project

-