|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader
public class SpringXMLComponentTypeLoader
Introspects a Spring XML application-context configuration file to create
Constructor Summary | |
---|---|
SpringXMLComponentTypeLoader(AssemblyFactory assemblyFactory,
JavaInterfaceFactory javaFactory,
PolicyFactory policyFactory)
|
Method Summary | |
---|---|
Service |
createService(java.lang.Class<?> interfaze,
java.lang.String name)
Creates a Service for the component type based on its name and Java interface |
protected Resource |
getApplicationContextResource(java.lang.String locationAttr,
java.lang.ClassLoader cl)
Gets hold of the application-context.xml file as a Spring resource |
protected java.lang.Class<SpringImplementation> |
getImplementationClass()
|
void |
load(SpringImplementation implementation)
Base method which loads the component type from the application-context attached to the Spring implementation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpringXMLComponentTypeLoader(AssemblyFactory assemblyFactory, JavaInterfaceFactory javaFactory, PolicyFactory policyFactory)
Method Detail |
---|
protected java.lang.Class<SpringImplementation> getImplementationClass()
public void load(SpringImplementation implementation) throws ContributionReadException
ContributionReadException
protected Resource getApplicationContextResource(java.lang.String locationAttr, java.lang.ClassLoader cl) throws ContributionReadException
locationAttr
- - the location attribute from the cl
- - the ClassLoader for the Spring implementation
ContributionReadException
public Service createService(java.lang.Class<?> interfaze, java.lang.String name) throws InvalidInterfaceException
InvalidInterfaceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |