C - specificationpublic abstract class NamedContextFactory<C extends NamedContextFactory.Specification> extends Object implements org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware
| Modifier and Type | Class and Description |
|---|---|
static interface |
NamedContextFactory.Specification
Specification with name and configuration.
|
| Constructor and Description |
|---|
NamedContextFactory(Class<?> defaultConfigType,
String propertySourceName,
String propertyName) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.context.annotation.AnnotationConfigApplicationContext |
createContext(String name) |
void |
destroy() |
protected String |
generateDisplayName(String name) |
protected org.springframework.context.annotation.AnnotationConfigApplicationContext |
getContext(String name) |
Set<String> |
getContextNames() |
<T> T |
getInstance(String name,
Class<?> clazz,
Class<?>... generics) |
<T> T |
getInstance(String name,
Class<T> type) |
<T> T |
getInstance(String name,
org.springframework.core.ResolvableType type) |
<T> Map<String,T> |
getInstances(String name,
Class<T> type) |
<T> org.springframework.beans.factory.ObjectProvider<T> |
getLazyProvider(String name,
Class<T> type) |
<T> org.springframework.beans.factory.ObjectProvider<T> |
getProvider(String name,
Class<T> type) |
void |
setApplicationContext(org.springframework.context.ApplicationContext parent) |
void |
setConfigurations(List<C> configurations) |
public void setApplicationContext(org.springframework.context.ApplicationContext parent)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanprotected org.springframework.context.annotation.AnnotationConfigApplicationContext getContext(String name)
protected org.springframework.context.annotation.AnnotationConfigApplicationContext createContext(String name)
public <T> org.springframework.beans.factory.ObjectProvider<T> getLazyProvider(String name, Class<T> type)
public <T> org.springframework.beans.factory.ObjectProvider<T> getProvider(String name, Class<T> type)
public <T> T getInstance(String name, org.springframework.core.ResolvableType type)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.