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_NAMECONTEXT_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, setResourceLoaderaddApplicationListener, 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, toStringgetClassLoader, getResourceByPath, setClassLoaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDatecontainsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotationcontainsLocalBean, getParentBeanFactorycontainsBean, getAliases, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatchgetMessage, getMessage, getMessagepublic 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.AbstractApplicationContextprotected void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
postProcessBeanFactory in class org.springframework.context.support.AbstractApplicationContextpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface org.springframework.web.context.WebApplicationContextpublic org.springframework.core.io.Resource[] getResources(String locationPattern) throws IOException
getResources in interface org.springframework.core.io.support.ResourcePatternResolvergetResources in class org.springframework.context.support.GenericApplicationContextIOExceptionpublic org.springframework.core.io.Resource getResource(String location)
getResource in interface org.springframework.core.io.ResourceLoadergetResource in class org.springframework.context.support.GenericApplicationContextpublic OsgiPlugin getPlugin()
getPlugin in interface PluginContextpublic void registerSingleton(String beanName, Object singletonObject)
registerSingleton in interface org.springframework.beans.factory.config.SingletonBeanRegistrypublic Object getSingleton(String beanName)
getSingleton in interface org.springframework.beans.factory.config.SingletonBeanRegistrypublic boolean containsSingleton(String beanName)
containsSingleton in interface org.springframework.beans.factory.config.SingletonBeanRegistrypublic String[] getSingletonNames()
getSingletonNames in interface org.springframework.beans.factory.config.SingletonBeanRegistrypublic int getSingletonCount()
getSingletonCount in interface org.springframework.beans.factory.config.SingletonBeanRegistryCopyright © 2014 Suncode. All rights reserved.