|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tuscany.sca.assembly.impl.BaseImpl
org.apache.tuscany.sca.assembly.impl.ExtensibleImpl
org.apache.tuscany.sca.assembly.impl.ComponentTypeImpl
org.apache.tuscany.sca.assembly.impl.ImplementationImpl
org.apache.tuscany.sca.implementation.spring.SpringImplementation
public class SpringImplementation
Represents a Spring implementation.
| Constructor Summary | |
|---|---|
protected |
SpringImplementation()
|
| Method Summary | |
|---|---|
SpringBeanElement |
getBeanFromService(Service service)
Returns the Spring Bean which implements a particular service |
ComponentType |
getComponentType()
|
JavaConstructorImpl<?> |
getConstructor()
|
java.lang.reflect.Method |
getDestroyMethod()
|
java.lang.reflect.Method |
getInitMethod()
|
java.lang.String |
getLocation()
|
java.util.List<PolicyHandlerTuple> |
getPolicyHandlerClassNames()
|
java.util.List<Property> |
getProperties()
Returns the list of properties that can be set. |
java.lang.Class |
getPropertyClass(java.lang.String propertyName)
Gets the Java Class for an SCA property |
java.util.List<Reference> |
getReferences()
Returns the list of reference types that are used. |
Resource |
getResource()
|
java.util.List<Service> |
getServices()
Returns a list of services that are offered. |
void |
setBeanForService(Service service,
SpringBeanElement theBean)
Sets the mapping from a service to the Spring Bean that implements the service |
void |
setComponentType(ComponentType componentType)
|
void |
setConstructor(JavaConstructorImpl<?> definition)
|
void |
setDestroyMethod(java.lang.reflect.Method destroyMethod)
|
void |
setInitMethod(java.lang.reflect.Method initMethod)
|
void |
setLocation(java.lang.String location)
Sets the location attribute for this Spring implementation location - a URI to the Spring application-context file |
void |
setPolicyHandlerClassNames(java.util.List<PolicyHandlerTuple> policyHandlerClassNames)
|
void |
setPropertyClass(java.lang.String propertyName,
java.lang.Class propertyClass)
Add a mapping from a SCA property name to a Java class for the property |
void |
setResource(Resource resource)
|
| Methods inherited from class org.apache.tuscany.sca.assembly.impl.ImplementationImpl |
|---|
getApplicablePolicySets, getConfiguredOperations, getPolicySets, getRequiredIntents, getType, setType |
| Methods inherited from class org.apache.tuscany.sca.assembly.impl.ComponentTypeImpl |
|---|
clone, equals, getConstrainingType, getURI, hashCode, setConstrainingType, setURI |
| Methods inherited from class org.apache.tuscany.sca.assembly.impl.ExtensibleImpl |
|---|
getExtensions |
| Methods inherited from class org.apache.tuscany.sca.assembly.impl.BaseImpl |
|---|
isUnresolved, setUnresolved |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.tuscany.sca.assembly.ComponentType |
|---|
getConstrainingType, getURI, setConstrainingType, setURI |
| Methods inherited from interface org.apache.tuscany.sca.assembly.Base |
|---|
isUnresolved, setUnresolved |
| Methods inherited from interface org.apache.tuscany.sca.assembly.Extensible |
|---|
getExtensions |
| Constructor Detail |
|---|
protected SpringImplementation()
| Method Detail |
|---|
public java.lang.String getLocation()
public void setLocation(java.lang.String location)
public void setResource(Resource resource)
public Resource getResource()
public JavaConstructorImpl<?> getConstructor()
public void setConstructor(JavaConstructorImpl<?> definition)
public java.lang.reflect.Method getInitMethod()
public void setInitMethod(java.lang.reflect.Method initMethod)
public java.lang.reflect.Method getDestroyMethod()
public void setDestroyMethod(java.lang.reflect.Method destroyMethod)
public ComponentType getComponentType()
public void setComponentType(ComponentType componentType)
public java.util.List<Service> getServices()
ComponentType
getServices in interface ComponentTypegetServices in class ComponentTypeImplpublic java.util.List<Reference> getReferences()
ComponentType
getReferences in interface ComponentTypegetReferences in class ComponentTypeImplpublic java.util.List<Property> getProperties()
ComponentType
getProperties in interface ComponentTypegetProperties in class ComponentTypeImplpublic SpringBeanElement getBeanFromService(Service service)
service - the service
public void setBeanForService(Service service,
SpringBeanElement theBean)
service - the servicetheBean - a SpringBeanElement for the Bean implementing the service
public void setPropertyClass(java.lang.String propertyName,
java.lang.Class propertyClass)
propertyName - propertyClass - public java.lang.Class getPropertyClass(java.lang.String propertyName)
propertyName - - the property name
public java.util.List<PolicyHandlerTuple> getPolicyHandlerClassNames()
public void setPolicyHandlerClassNames(java.util.List<PolicyHandlerTuple> policyHandlerClassNames)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||