org.springframework.osgi.context
Interface DelegatedExecutionOsgiBundleApplicationContext

All Superinterfaces:
ApplicationContext, ApplicationEventPublisher, BeanFactory, ConfigurableApplicationContext, ConfigurableOsgiBundleApplicationContext, HierarchicalBeanFactory, Lifecycle, ListableBeanFactory, MessageSource, ResourceLoader, ResourcePatternResolver
All Known Implementing Classes:
AbstractDelegatedExecutionApplicationContext, OsgiBundleXmlApplicationContext

public interface DelegatedExecutionOsgiBundleApplicationContext
extends ConfigurableOsgiBundleApplicationContext

Interface that redirect the application context crucial methods to a third party executor. This interface splits the refresh method in two: startRefresh() and completeRefresh().

Author:
Costin Leau

Field Summary
 
Fields inherited from interface org.springframework.osgi.context.ConfigurableOsgiBundleApplicationContext
APPLICATION_CONTEXT_SERVICE_PROPERTY_NAME, BUNDLE_CONTEXT_BEAN_NAME
 
Fields inherited from interface org.springframework.context.ConfigurableApplicationContext
LOAD_TIME_WEAVER_BEAN_NAME
 
Fields inherited from interface org.springframework.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX
 
Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver
CLASSPATH_ALL_URL_PREFIX
 
Fields inherited from interface org.springframework.core.io.ResourceLoader
CLASSPATH_URL_PREFIX
 
Method Summary
 void completeRefresh()
          The second, last phase of the refresh.
 Object getMonitor()
          Synchronization monitor for this ApplicationContext in case multiple threads can work with the application context lifecycle.
 void normalClose()
          The non-delegated close operation.
 void normalRefresh()
          The non-delegated refresh operation.
 void setExecutor(OsgiBundleApplicationContextExecutor executor)
          Assign the OsgiBundleApplicationContextExecutor for this delegated context.
 void startRefresh()
          First phase of the refresh.
 
Methods inherited from interface org.springframework.osgi.context.ConfigurableOsgiBundleApplicationContext
getBundle, getBundleContext, setBundleContext, setConfigLocations, setPublishContextAsService
 
Methods inherited from interface org.springframework.context.ConfigurableApplicationContext
addApplicationListener, addBeanFactoryPostProcessor, close, getBeanFactory, isActive, refresh, registerShutdownHook, setParent
 
Methods inherited from interface org.springframework.context.ApplicationContext
getAutowireCapableBeanFactory, getDisplayName, getParent, getStartupDate
 
Methods inherited from interface org.springframework.beans.factory.ListableBeanFactory
containsBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType
 
Methods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactory
containsLocalBean, getParentBeanFactory
 
Methods inherited from interface org.springframework.beans.factory.BeanFactory
containsBean, getAliases, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch
 
Methods inherited from interface org.springframework.context.MessageSource
getMessage, getMessage, getMessage
 
Methods inherited from interface org.springframework.context.ApplicationEventPublisher
publishEvent
 
Methods inherited from interface org.springframework.core.io.support.ResourcePatternResolver
getResources
 
Methods inherited from interface org.springframework.core.io.ResourceLoader
getClassLoader, getResource
 
Methods inherited from interface org.springframework.context.Lifecycle
isRunning, start, stop
 

Method Detail

normalRefresh

void normalRefresh()
The non-delegated refresh operation.

See Also:
ConfigurableApplicationContext.refresh()

normalClose

void normalClose()
The non-delegated close operation.

See Also:
ConfigurableApplicationContext.close()

startRefresh

void startRefresh()
First phase of the refresh. Executes right a certain condition, imposed by the executor is checked. Normally, this just prepares the beanFactory but does not creates any beans.


completeRefresh

void completeRefresh()
The second, last phase of the refresh. Finishes the rest of the refresh operation. Normally, this operations performs most of the refresh work, such as instantiating singleton.


setExecutor

void setExecutor(OsgiBundleApplicationContextExecutor executor)
Assign the OsgiBundleApplicationContextExecutor for this delegated context.

Parameters:
executor -

getMonitor

Object getMonitor()
Synchronization monitor for this ApplicationContext in case multiple threads can work with the application context lifecycle.

Returns:
monitor for this application context.


Copyright © 2006-2007 Spring Framework. All Rights Reserved.