| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tuscany.sca.implementation.osgi.runtime.OSGiImplementationProvider
public class OSGiImplementationProvider
The runtime instantiation of OSGi component implementations
| Constructor Summary | |
|---|---|
OSGiImplementationProvider(RuntimeComponent definition,
                           OSGiImplementation impl,
                           DataBindingExtensionPoint dataBindingRegistry,
                           JavaPropertyValueObjectFactory propertyValueFactory,
                           ProxyFactory proxyFactory,
                           ScopeRegistry scopeRegistry,
                           RequestContextFactory requestContextFactory,
                           MessageFactory messageFactory,
                           InterfaceContractMapper mapper)
 | 
|
| Method Summary | |
|---|---|
 void | 
bundleChanged(BundleEvent event)
 | 
 InstanceWrapper<?> | 
createInstanceWrapper()
Create a wrapper for the component instance for the scope management  | 
 Invoker | 
createInvoker(RuntimeComponentService service,
              Operation operation)
Create an invoker for the component implementation in the invocation chain.  | 
 Invoker | 
createTargetInvoker(RuntimeComponentService service,
                    Operation operation)
 | 
 void | 
frameworkEvent(FrameworkEvent event)
 | 
protected  OSGiImplementationImpl | 
getImplementation()
 | 
 long | 
getMaxAge()
 | 
 long | 
getMaxIdleTime()
 | 
protected  org.osgi.framework.ServiceReference | 
getOSGiServiceReference(ComponentService service)
 | 
protected  org.osgi.framework.ServiceReference | 
getOSGiServiceReference(EndpointReference from,
                        Interface callbackInterface)
 | 
protected  RuntimeComponent | 
getRuntimeComponent()
 | 
 Scope | 
getScope()
Get the scope for the component implementation  | 
protected  ScopeContainer<?> | 
getScopeContainer()
 | 
protected  Bundle | 
installDummyBundleWithoutFragments(java.lang.Class<?> interfaceClass)
 | 
 boolean | 
isEagerInit()
Indicate if the component needs to be eagerly initialized  | 
 boolean | 
isOptimizable()
 | 
 void | 
processAnnotations(boolean doWait)
 | 
 void | 
start()
This method will be invoked when the component implementation is activated.  | 
protected  Bundle | 
startBundle(boolean doWait)
 | 
 void | 
stop()
This method will be invoked when the component implementation is deactivated.  | 
 boolean | 
supportsOneWayInvocation()
For bindings that invoke one-way callback operations asynchronously, there is no need to perform a thread switch before calling the invoker.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public OSGiImplementationProvider(RuntimeComponent definition,
                                  OSGiImplementation impl,
                                  DataBindingExtensionPoint dataBindingRegistry,
                                  JavaPropertyValueObjectFactory propertyValueFactory,
                                  ProxyFactory proxyFactory,
                                  ScopeRegistry scopeRegistry,
                                  RequestContextFactory requestContextFactory,
                                  MessageFactory messageFactory,
                                  InterfaceContractMapper mapper)
                           throws BundleException
BundleException| Method Detail | 
|---|
protected RuntimeComponent getRuntimeComponent()
protected OSGiImplementationImpl getImplementation()
protected Bundle startBundle(boolean doWait)
                      throws ObjectCreationException
ObjectCreationException
protected org.osgi.framework.ServiceReference getOSGiServiceReference(ComponentService service)
                                                               throws ObjectCreationException
ObjectCreationException
protected org.osgi.framework.ServiceReference getOSGiServiceReference(EndpointReference from,
                                                                      Interface callbackInterface)
                                                               throws ObjectCreationException
ObjectCreationException
protected Bundle installDummyBundleWithoutFragments(java.lang.Class<?> interfaceClass)
                                             throws java.lang.Exception
java.lang.Exception
public InstanceWrapper<?> createInstanceWrapper()
                                         throws ObjectCreationException
ScopedImplementationProvider
createInstanceWrapper in interface ScopedImplementationProviderObjectCreationExceptionpublic boolean isOptimizable()
public Scope getScope()
ScopedImplementationProvider
getScope in interface ScopedImplementationProviderpublic boolean isEagerInit()
ScopedImplementationProvider
isEagerInit in interface ScopedImplementationProviderpublic long getMaxAge()
getMaxAge in interface ScopedImplementationProviderpublic long getMaxIdleTime()
getMaxIdleTime in interface ScopedImplementationProviderprotected ScopeContainer<?> getScopeContainer()
public Invoker createTargetInvoker(RuntimeComponentService service,
                                   Operation operation)
public Invoker createInvoker(RuntimeComponentService service,
                             Operation operation)
ImplementationProvider
createInvoker in interface ImplementationProviderservice - The component serviceoperation - The operation that the interceptor will handle
public boolean supportsOneWayInvocation()
ImplementationProvider
supportsOneWayInvocation in interface ImplementationProviderpublic void start()
ImplementationProvider
start in interface ImplementationProvider
public void processAnnotations(boolean doWait)
                        throws IntrospectionException
IntrospectionExceptionpublic void stop()
ImplementationProvider
stop in interface ImplementationProviderpublic void frameworkEvent(FrameworkEvent event)
public void bundleChanged(BundleEvent event)
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||