public abstract class AbstractOsgiPluginContext extends org.springframework.context.support.GenericApplicationContext implements PluginContext
Modifier and Type | Field and Description |
---|---|
static String |
PLUGIN_BEAN_NAME |
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME
CONTEXT_ATTRIBUTES_BEAN_NAME, CONTEXT_PARAMETERS_BEAN_NAME, ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, SCOPE_APPLICATION, SCOPE_GLOBAL_SESSION, SCOPE_REQUEST, SCOPE_SESSION, SERVLET_CONTEXT_BEAN_NAME
Constructor and Description |
---|
AbstractOsgiPluginContext(OsgiPlugin plugin,
org.springframework.web.context.WebApplicationContext rootContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsSingleton(String beanName) |
OsgiPlugin |
getPlugin() |
org.springframework.core.io.Resource |
getResource(String location) |
org.springframework.core.io.Resource[] |
getResources(String locationPattern) |
javax.servlet.ServletContext |
getServletContext() |
Object |
getSingleton(String beanName) |
int |
getSingletonCount() |
String[] |
getSingletonNames() |
protected void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
protected void |
registerBeanPostProcessors(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
void |
registerSingleton(String beanName,
Object singletonObject) |
cancelRefresh, closeBeanFactory, getBeanDefinition, getBeanFactory, getDefaultListableBeanFactory, isAlias, isBeanNameInUse, refreshBeanFactory, registerAlias, registerBeanDefinition, removeAlias, removeBeanDefinition, setAllowBeanDefinitionOverriding, setAllowCircularReferences, setId, setParent, setResourceLoader
addApplicationListener, addBeanFactoryPostProcessor, addListener, close, containsBean, containsBeanDefinition, containsLocalBean, createEnvironment, destroy, destroyBeans, doClose, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getApplicationName, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getDisplayName, getEnvironment, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResourcePatternResolver, getStartupDate, getType, initApplicationEventMulticaster, initLifecycleProcessor, initMessageSource, initPropertySources, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, obtainFreshBeanFactory, onClose, onRefresh, prepareBeanFactory, prepareRefresh, publishEvent, refresh, registerListeners, registerShutdownHook, setDisplayName, setEnvironment, start, stop, toString
getClassLoader, getResourceByPath, setClassLoader
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
public static final String PLUGIN_BEAN_NAME
public AbstractOsgiPluginContext(OsgiPlugin plugin, org.springframework.web.context.WebApplicationContext rootContext)
protected void registerBeanPostProcessors(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
registerBeanPostProcessors
in class org.springframework.context.support.AbstractApplicationContext
protected void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
postProcessBeanFactory
in class org.springframework.context.support.AbstractApplicationContext
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface org.springframework.web.context.WebApplicationContext
public org.springframework.core.io.Resource[] getResources(String locationPattern) throws IOException
getResources
in interface org.springframework.core.io.support.ResourcePatternResolver
getResources
in class org.springframework.context.support.GenericApplicationContext
IOException
public org.springframework.core.io.Resource getResource(String location)
getResource
in interface org.springframework.core.io.ResourceLoader
getResource
in class org.springframework.context.support.GenericApplicationContext
public OsgiPlugin getPlugin()
getPlugin
in interface PluginContext
public void registerSingleton(String beanName, Object singletonObject)
registerSingleton
in interface org.springframework.beans.factory.config.SingletonBeanRegistry
public Object getSingleton(String beanName)
getSingleton
in interface org.springframework.beans.factory.config.SingletonBeanRegistry
public boolean containsSingleton(String beanName)
containsSingleton
in interface org.springframework.beans.factory.config.SingletonBeanRegistry
public String[] getSingletonNames()
getSingletonNames
in interface org.springframework.beans.factory.config.SingletonBeanRegistry
public int getSingletonCount()
getSingletonCount
in interface org.springframework.beans.factory.config.SingletonBeanRegistry
Copyright © 2014 Suncode. All rights reserved.