public interface PluginContext
extends org.springframework.web.context.WebApplicationContext, org.springframework.beans.factory.support.BeanDefinitionRegistry, org.springframework.beans.factory.config.SingletonBeanRegistry
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| Modifier and Type | Method and Description |
|---|---|
Plugin |
getPlugin()
Zwraca wtyczkę do której należy ten kontekst.
|
<T> T |
injectDependencies(Class<T> type)
Tworzy nową instancję podanej klasy i wstrzykuje wszystkie zależności oznaczone adnotacją @
Autowired. |
getServletContextgetApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDatecontainsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotationcontainsLocalBean, getParentBeanFactorycontainsBean, getAliases, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatchgetMessage, getMessage, getMessagegetResourcesgetClassLoader, getResourcecontainsBeanDefinition, getBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, isBeanNameInUse, registerBeanDefinition, removeBeanDefinitionPlugin getPlugin()
<T> T injectDependencies(Class<T> type)
Autowired.
Jeżeli kontekst wtyczki nie jest aktywny (nie został jeszcze odświeżony), to zależności zostaną wstrzknięte
dopiero po aktywacji kontekstu.type - typ tworzonego komponentuCopyright © 2023 Suncode. All rights reserved.