org.apache.tuscany.sca.implementation.java
Interface JavaImplementation

All Superinterfaces:
Base, BaseJavaImplementation, ComponentType, Extensible, Implementation
All Known Implementing Classes:
JavaImplementationImpl

public interface JavaImplementation
extends BaseJavaImplementation

Represents a Java implementation.


Method Summary
 void addConversationIDMember(java.lang.reflect.Member conversationIDMember)
          Sets the Java member used to inject a conversation ID.
 java.util.List<java.lang.reflect.Method> getAllowsPassByReferenceMethods()
           
 java.util.Map<java.lang.String,java.util.Collection<JavaElementImpl>> getCallbackMembers()
           
 JavaConstructorImpl<?> getConstructor()
          Returns the constructor used to instantiate implementation instances.
 java.util.Map<java.lang.reflect.Constructor,JavaConstructorImpl> getConstructors()
           
 java.util.List<java.lang.reflect.Member> getConversationIDMembers()
          Returns the Java member used to inject a conversation ID.
 java.lang.reflect.Method getDestroyMethod()
          Returns the component destructor method.
 java.lang.reflect.Method getInitMethod()
          Returns the component initializer method.
 JavaScopeImpl getJavaScope()
           
 long getMaxAge()
           
 long getMaxIdleTime()
           
 java.util.List<PolicyHandlerTuple> getPolicyHandlerClassNames()
           
 java.util.Map<java.lang.String,JavaElementImpl> getPropertyMembers()
           
 java.util.Map<java.lang.String,JavaElementImpl> getReferenceMembers()
           
 java.util.Map<java.lang.String,JavaResourceImpl> getResources()
          Returns the resources injected into this implementation.
 boolean isAllowsPassByReference()
          Returns true if AllowsPassReference is set.
 boolean isAllowsPassByReference(java.lang.reflect.Method method)
           
 boolean isEagerInit()
           
 void setAllowsPassByReference(boolean allowsPassByReference)
           
 void setConstructor(JavaConstructorImpl<?> definition)
          Sets the constructor used to instantiate implementation instances
 void setDestroyMethod(java.lang.reflect.Method destroyMethod)
          Sets the component destructor method.
 void setEagerInit(boolean eagerInit)
           
 void setInitMethod(java.lang.reflect.Method initMethod)
          Sets the component initializer method.
 void setJavaScope(JavaScopeImpl scope)
           
 void setMaxAge(long maxAge)
           
 void setMaxIdleTime(long maxIdleTime)
           
 void setPolicyHandlerClassNames(java.util.List<PolicyHandlerTuple> policyHandlerClassNames)
           
 
Methods inherited from interface org.apache.tuscany.sca.implementation.java.BaseJavaImplementation
getJavaClass, getName, setJavaClass, setName
 
Methods inherited from interface org.apache.tuscany.sca.assembly.ComponentType
getConstrainingType, getProperties, getReferences, getServices, 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
 

Method Detail

getConstructor

JavaConstructorImpl<?> getConstructor()
Returns the constructor used to instantiate implementation instances.

Returns:
the constructor used to instantiate implementation instances

setConstructor

void setConstructor(JavaConstructorImpl<?> definition)
Sets the constructor used to instantiate implementation instances

Parameters:
definition - the constructor used to instantiate implementation instances

getInitMethod

java.lang.reflect.Method getInitMethod()
Returns the component initializer method.

Returns:
the component initializer method

setInitMethod

void setInitMethod(java.lang.reflect.Method initMethod)
Sets the component initializer method.

Parameters:
initMethod - the component initializer method

getDestroyMethod

java.lang.reflect.Method getDestroyMethod()
Returns the component destructor method.

Returns:
the component destructor method

setDestroyMethod

void setDestroyMethod(java.lang.reflect.Method destroyMethod)
Sets the component destructor method.

Parameters:
destroyMethod - the component destructor method

getResources

java.util.Map<java.lang.String,JavaResourceImpl> getResources()
Returns the resources injected into this implementation.

Returns:

getConversationIDMembers

java.util.List<java.lang.reflect.Member> getConversationIDMembers()
Returns the Java member used to inject a conversation ID.

Returns:

addConversationIDMember

void addConversationIDMember(java.lang.reflect.Member conversationIDMember)
Sets the Java member used to inject a conversation ID.

Parameters:
conversationIDMember -

isAllowsPassByReference

boolean isAllowsPassByReference()
Returns true if AllowsPassReference is set.

Returns:
true if AllowsPassByReference is set

setAllowsPassByReference

void setAllowsPassByReference(boolean allowsPassByReference)
Parameters:
allowsPassByReference - the allowsPassByReference to set

getAllowsPassByReferenceMethods

java.util.List<java.lang.reflect.Method> getAllowsPassByReferenceMethods()
Returns:
the allowsPassByReferenceMethods

isAllowsPassByReference

boolean isAllowsPassByReference(java.lang.reflect.Method method)
Parameters:
method -
Returns:

getConstructors

java.util.Map<java.lang.reflect.Constructor,JavaConstructorImpl> getConstructors()
Returns:
the constructors

isEagerInit

boolean isEagerInit()
Returns:
the eagerInit

setEagerInit

void setEagerInit(boolean eagerInit)
Parameters:
eagerInit - the eagerInit to set

getCallbackMembers

java.util.Map<java.lang.String,java.util.Collection<JavaElementImpl>> getCallbackMembers()
Returns:
the callbacks

getPropertyMembers

java.util.Map<java.lang.String,JavaElementImpl> getPropertyMembers()
Returns:
the properties

getReferenceMembers

java.util.Map<java.lang.String,JavaElementImpl> getReferenceMembers()
Returns:
the references

getJavaScope

JavaScopeImpl getJavaScope()
Returns:
the scope

setJavaScope

void setJavaScope(JavaScopeImpl scope)
Parameters:
scope - the scope to set

getMaxAge

long getMaxAge()
Returns:
the maxAge

setMaxAge

void setMaxAge(long maxAge)
Parameters:
maxAge - the maxAge to set

getMaxIdleTime

long getMaxIdleTime()
Returns:
the maxIdleTime

setMaxIdleTime

void setMaxIdleTime(long maxIdleTime)
Parameters:
maxIdleTime - the maxIdleTime to set

getPolicyHandlerClassNames

java.util.List<PolicyHandlerTuple> getPolicyHandlerClassNames()
Returns:
the map of a policy handler class names

setPolicyHandlerClassNames

void setPolicyHandlerClassNames(java.util.List<PolicyHandlerTuple> policyHandlerClassNames)
Parameters:
policyHandlerClassNames - Map of policyhandler class names