org.apache.tuscany.sca.implementation.spring.xml
Class SpringBeanIntrospector

java.lang.Object
  extended by org.apache.tuscany.sca.implementation.spring.xml.SpringBeanIntrospector

public class SpringBeanIntrospector
extends java.lang.Object

Provides introspection functions for Spring beans This version leans heavily on the implementation-java classes


Constructor Summary
SpringBeanIntrospector(AssemblyFactory assemblyFactory, JavaInterfaceFactory javaFactory, PolicyFactory policyFactory)
          The constructor sets up the various visitor elements that will be used to introspect the Spring bean and extract SCA information.
 
Method Summary
 java.util.Map<java.lang.String,JavaElementImpl> introspectBean(java.lang.Class<?> beanClass, ComponentType componentType, SpringImplementation springImplementation)
          Introspect a Spring Bean and extract the features important to SCA
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringBeanIntrospector

public SpringBeanIntrospector(AssemblyFactory assemblyFactory,
                              JavaInterfaceFactory javaFactory,
                              PolicyFactory policyFactory)
The constructor sets up the various visitor elements that will be used to introspect the Spring bean and extract SCA information.

Parameters:
assemblyFactory - The Assembly Factory to use
javaFactory - The Java Interface Factory to use
policyFactory - The Policy Factory to use.
Method Detail

introspectBean

public java.util.Map<java.lang.String,JavaElementImpl> introspectBean(java.lang.Class<?> beanClass,
                                                                      ComponentType componentType,
                                                                      SpringImplementation springImplementation)
                                                               throws ContributionResolveException
Introspect a Spring Bean and extract the features important to SCA

Parameters:
beanClass - the Spring Bean class to introspect
componentType - the componentType that is filled in through the introspection process (assumed empty on invocation, filled on return
Returns:
a Map of property names to JavaElementImpl
Throws:
ContributionResolveException - - if there was a problem resolving the Spring Bean or its componentType