public class ExtenderConfiguration extends Object implements org.springframework.beans.factory.DisposableBean
Constructor and Description |
---|
ExtenderConfiguration(org.osgi.framework.BundleContext bundleContext,
org.apache.commons.logging.Log log)
Constructs a new
ExtenderConfiguration instance. |
Modifier and Type | Method and Description |
---|---|
protected void |
addDefaultDependencyFactories() |
void |
destroy()
Cleanup the configuration items.
|
ClassLoader |
getClassLoader()
Returns the class loader wrapped around the extender bundle.
|
OsgiApplicationContextCreator |
getContextCreator()
Returns the contextCreator.
|
OsgiBundleApplicationContextListener |
getContextEventListener()
Returns the contextEventListener.
|
List<OsgiServiceDependencyFactory> |
getDependencyFactories()
Returns the dependencies factories declared by the extender configuration.
|
long |
getDependencyWaitTime()
Returns the dependencyWaitTime.
|
OsgiBundleApplicationContextEventMulticaster |
getEventMulticaster()
Returns the eventMulticaster.
|
List<OsgiBeanFactoryPostProcessor> |
getPostProcessors()
Returns the postProcessors.
|
org.springframework.core.task.TaskExecutor |
getShutdownTaskExecutor()
Returns the shutdown task executor.
|
long |
getShutdownWaitTime()
Returns the shutdownWaitTime.
|
org.springframework.core.task.TaskExecutor |
getTaskExecutor()
Returns the taskExecutor.
|
protected OsgiApplicationContextCreator |
postProcess(OsgiApplicationContextCreator contextCreator)
Allows post processing of the context creator.
|
void |
setForceThreadShutdown(boolean forceThreadShutdown)
Sets the flag to force the taskExtender to close up in case of runaway threads - this applies *only* if the
taskExecutor has been created internally.
|
boolean |
shouldProcessAnnotation()
Indicates if the process annotation is enabled or not.
|
public ExtenderConfiguration(org.osgi.framework.BundleContext bundleContext, org.apache.commons.logging.Log log)
ExtenderConfiguration
instance. Locates the extender configuration, creates an
application context which will returned the extender items.bundleContext
- extender OSGi bundle contextprotected OsgiApplicationContextCreator postProcess(OsgiApplicationContextCreator contextCreator)
contextCreator
- public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
protected void addDefaultDependencyFactories()
public org.springframework.core.task.TaskExecutor getTaskExecutor()
public org.springframework.core.task.TaskExecutor getShutdownTaskExecutor()
public OsgiBundleApplicationContextListener getContextEventListener()
public long getShutdownWaitTime()
public boolean shouldProcessAnnotation()
public long getDependencyWaitTime()
public OsgiBundleApplicationContextEventMulticaster getEventMulticaster()
public void setForceThreadShutdown(boolean forceThreadShutdown)
forceThreadShutdown
- The forceThreadShutdown to set.public OsgiApplicationContextCreator getContextCreator()
public List<OsgiBeanFactoryPostProcessor> getPostProcessors()
public ClassLoader getClassLoader()
public List<OsgiServiceDependencyFactory> getDependencyFactories()
Copyright © 2006–2018. All rights reserved.