public interface DelegatedExecutionOsgiBundleApplicationContext extends ConfigurableOsgiBundleApplicationContext
refresh
method in two parts:
startRefresh()
and completeRefresh()
.
Note: This interface is intended for usage only inside
Spring-DM framework. Relying on this interface is highly discouraged.DependencyAwareBeanFactoryPostProcessor
,
DependencyInitializationAwareBeanPostProcessor
APPLICATION_CONTEXT_SERVICE_PROPERTY_NAME, BUNDLE_BEAN_NAME, BUNDLE_CONTEXT_BEAN_NAME, SPRING_DM_APPLICATION_CONTEXT_SERVICE_PROPERTY_NAME
CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME
Modifier and Type | Method and Description |
---|---|
void |
completeRefresh()
The second, last phase of the refresh.
|
OsgiBundleApplicationContextEventMulticaster |
getDelegatedEventMulticaster()
Returns the OSGi event multicaster (if any) associated with this
application context.
|
void |
normalClose()
Non-delegated close operation (execute
ConfigurableApplicationContext.close() in the
traditional way). |
void |
normalRefresh()
Non-delegated refresh operation (execute
ConfigurableApplicationContext.refresh() in the
traditional way). |
void |
setDelegatedEventMulticaster(OsgiBundleApplicationContextEventMulticaster multicaster)
Allows a delegated
OsgiBundleApplicationContextEventMulticaster ,
external to the application context, to be used for sending OSGi
application context events regarding the application context life cycle. |
void |
setExecutor(OsgiBundleApplicationContextExecutor executor)
Assigns the
OsgiBundleApplicationContextExecutor for this
delegated context. |
void |
startRefresh()
First phase of the refresh.
|
getBundle, getBundleContext, setBundleContext, setConfigLocations, setPublishContextAsService
addApplicationListener, addBeanFactoryPostProcessor, close, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setEnvironment, setId, setParent
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
containsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation
containsLocalBean, getParentBeanFactory
containsBean, getAliases, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch
getMessage, getMessage, getMessage
getResources
void normalRefresh()
ConfigurableApplicationContext.refresh()
in the
traditional way).ConfigurableApplicationContext.refresh()
void normalClose()
ConfigurableApplicationContext.close()
in the
traditional way).ConfigurableApplicationContext.close()
void startRefresh()
beanFactory
but does not instantiates any beans.void completeRefresh()
refresh
operation. Normally, this operations performs
most of the refresh work
, such as instantiating
singletons.void setExecutor(OsgiBundleApplicationContextExecutor executor)
OsgiBundleApplicationContextExecutor
for this
delegated context.executor
- the executor of this application context, to which the
refresh
method is delegated tovoid setDelegatedEventMulticaster(OsgiBundleApplicationContextEventMulticaster multicaster)
OsgiBundleApplicationContextEventMulticaster
,
external to the application context, to be used for sending OSGi
application context events regarding the application context life cycle.
This method is mainly intended for monitoring the context lifecycle by
third parties (such as the OSGi extender). It's up to the implementation
to decide whether this setter method is required or not.multicaster
- the application multicaster used for sending events
triggered by the delegated execution.OsgiBundleApplicationContextEvent
OsgiBundleApplicationContextEventMulticaster getDelegatedEventMulticaster()
Copyright © 2006–2019. All rights reserved.