org.apache.tuscany.sca.implementation.osgi.impl
Class OSGiImplementationImpl

java.lang.Object
  extended by org.apache.tuscany.sca.assembly.impl.BaseImpl
      extended by org.apache.tuscany.sca.assembly.impl.ExtensibleImpl
          extended by org.apache.tuscany.sca.assembly.impl.ComponentTypeImpl
              extended by org.apache.tuscany.sca.assembly.impl.ImplementationImpl
                  extended by org.apache.tuscany.sca.implementation.osgi.impl.OSGiImplementationImpl
All Implemented Interfaces:
java.lang.Cloneable, Base, ComponentType, Extensible, Implementation, OperationsConfigurator, OSGiImplementation, IntentAttachPoint, PolicySetAttachPoint

public class OSGiImplementationImpl
extends ImplementationImpl
implements OSGiImplementation

OSGi implementation All attributes from have getters in this class This class implements OSGiImplementationInterface which is associated with OSGiImplementationProvider.


Constructor Summary
OSGiImplementationImpl(ModelFactoryExtensionPoint modelFactories, java.lang.String bundleSymbolicName, java.lang.String bundleVersion, java.lang.String[] imports, java.lang.String[] classList, java.util.Hashtable<java.lang.String,java.util.List<ComponentProperty>> refProperties, java.util.Hashtable<java.lang.String,java.util.List<ComponentProperty>> serviceProperties)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getBundleSymbolicName()
           
 java.lang.String getBundleVersion()
           
 java.lang.String[] getClassList()
           
 java.lang.String[] getImports()
           
 ModelFactoryExtensionPoint getModelFactories()
           
 java.lang.Object getOSGiBundle()
           
 java.util.List<ComponentProperty> getReferenceCallbackProperties(java.lang.String referenceName)
           
 java.util.List<ComponentProperty> getReferenceProperties(java.lang.String referenceName)
           
 java.util.List<ComponentProperty> getServiceCallbackProperties(java.lang.String serviceName)
           
 java.util.List<ComponentProperty> getServiceProperties(java.lang.String serviceName)
           
 boolean isAllowsPassByReference()
          Since OSGi implementation annotations may not be processed until much later, leave it to the OSGi invoker to decide whether pass-by-reference is allowed.
 void setCallbackProperties(java.util.Hashtable<java.lang.String,java.util.List<ComponentProperty>> refCallbackProperties, java.util.Hashtable<java.lang.String,java.util.List<ComponentProperty>> serviceCallbackProperties)
           
 void setOSGiBundle(java.lang.Object osgiBundle)
           
 
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, getConstrainingType, getProperties, getReferences, getServices, 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, 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
 

Constructor Detail

OSGiImplementationImpl

public OSGiImplementationImpl(ModelFactoryExtensionPoint modelFactories,
                              java.lang.String bundleSymbolicName,
                              java.lang.String bundleVersion,
                              java.lang.String[] imports,
                              java.lang.String[] classList,
                              java.util.Hashtable<java.lang.String,java.util.List<ComponentProperty>> refProperties,
                              java.util.Hashtable<java.lang.String,java.util.List<ComponentProperty>> serviceProperties)
Method Detail

setCallbackProperties

public void setCallbackProperties(java.util.Hashtable<java.lang.String,java.util.List<ComponentProperty>> refCallbackProperties,
                                  java.util.Hashtable<java.lang.String,java.util.List<ComponentProperty>> serviceCallbackProperties)

getBundleSymbolicName

public java.lang.String getBundleSymbolicName()
Specified by:
getBundleSymbolicName in interface OSGiImplementation

getBundleVersion

public java.lang.String getBundleVersion()
Specified by:
getBundleVersion in interface OSGiImplementation

getImports

public java.lang.String[] getImports()
Specified by:
getImports in interface OSGiImplementation

getClassList

public java.lang.String[] getClassList()

getModelFactories

public ModelFactoryExtensionPoint getModelFactories()

getReferenceProperties

public java.util.List<ComponentProperty> getReferenceProperties(java.lang.String referenceName)
Specified by:
getReferenceProperties in interface OSGiImplementation

getServiceProperties

public java.util.List<ComponentProperty> getServiceProperties(java.lang.String serviceName)
Specified by:
getServiceProperties in interface OSGiImplementation

getReferenceCallbackProperties

public java.util.List<ComponentProperty> getReferenceCallbackProperties(java.lang.String referenceName)

getServiceCallbackProperties

public java.util.List<ComponentProperty> getServiceCallbackProperties(java.lang.String serviceName)

isAllowsPassByReference

public boolean isAllowsPassByReference()
Since OSGi implementation annotations may not be processed until much later, leave it to the OSGi invoker to decide whether pass-by-reference is allowed.

Returns:

getOSGiBundle

public java.lang.Object getOSGiBundle()

setOSGiBundle

public void setOSGiBundle(java.lang.Object osgiBundle)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class ComponentTypeImpl