Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.implementation.java
Interface ImplementationProcessorService


public interface ImplementationProcessorService

Provides utility methods for Java implementation processing

Version:
$Rev: 452328 $ $Date: 2006-10-03 00:27:46 -0700 (Tue, 03 Oct 2006) $

Method Summary
 void addName(List<String> names, int pos, String name)
          Inserts a name at the specified position, paddiling the list if its size is less than the position
 boolean areUnique(Class[] collection)
          Determines if all the members of a collection have unique types
 JavaMappedReference createReference(String name, Member member, Class<?> paramType)
           
 JavaMappedService createService(Class<?> interfaze)
          Introspects the given interface to produce a mapped service
 boolean injectionAnnotationsPresent(Annotation[][] annots)
          Returns true if @Autowire, @Property, or @Reference are present in the given array
 void processCallback(Class<?> interfaze, ServiceContract<?> contract)
          Processes the callback contract for a given interface type
 boolean processParam(Class<?> param, Annotation[] paramAnnotations, String[] constructorNames, int pos, PojoComponentType<JavaMappedService,JavaMappedReference,JavaMappedProperty<?>> type, List<String> injectionNames)
          Processes a constructor parameter by introspecting its annotations
 

Method Detail

createService

JavaMappedService createService(Class<?> interfaze)
                                throws InvalidServiceContractException,
                                       InvalidServiceContractException
Introspects the given interface to produce a mapped service

Throws:
InvalidServiceContractException

createReference

JavaMappedReference createReference(String name,
                                    Member member,
                                    Class<?> paramType)
                                    throws ProcessingException
Throws:
ProcessingException

processCallback

void processCallback(Class<?> interfaze,
                     ServiceContract<?> contract)
                     throws InvalidServiceContractException
Processes the callback contract for a given interface type

Parameters:
interfaze - the interface type to examine
contract - the service contract the callback is associated wth
Throws:
InvalidServiceContractException

areUnique

boolean areUnique(Class[] collection)
Determines if all the members of a collection have unique types

Parameters:
collection - the collection to analyze
Returns:
true if the types are unique

addName

void addName(List<String> names,
             int pos,
             String name)
Inserts a name at the specified position, paddiling the list if its size is less than the position


processParam

boolean processParam(Class<?> param,
                     Annotation[] paramAnnotations,
                     String[] constructorNames,
                     int pos,
                     PojoComponentType<JavaMappedService,JavaMappedReference,JavaMappedProperty<?>> type,
                     List<String> injectionNames)
                     throws ProcessingException
Processes a constructor parameter by introspecting its annotations

Parameters:
param - the parameter to process
paramAnnotations - the parameter annotations
constructorNames - the array of constructorNames specified by
pos - the declaration position of the constructor parameter
type - the component type associated with implementation being reflected
injectionNames - the list of parameter constructorNames specified on parameter annotations
Throws:
ProcessingException

injectionAnnotationsPresent

boolean injectionAnnotationsPresent(Annotation[][] annots)
Returns true if @Autowire, @Property, or @Reference are present in the given array


Apache Tuscany SCA Kernel Sub-Project

-