2016/05/28 - Apache Tuscany has been retired.
For more information, please explore the Attic.
org.apache.tuscany.sca.implementation.spring.xml
Class SpringBeanIntrospector
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 usejavaFactory
- The Java Interface Factory to usepolicyFactory
- The Policy Factory to use.
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 introspectcomponentType
- 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