public 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 |
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 org.springframework.context.annotation.AnnotationConfigApplicationContext |
getContext(String name) |
Set<String> |
getContextNames() |
<T> T |
getInstance(String name,
Class<T> type) |
<T> Map<String,T> |
getInstances(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.ApplicationContextAware
org.springframework.beans.BeansException
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
protected org.springframework.context.annotation.AnnotationConfigApplicationContext getContext(String name)
protected org.springframework.context.annotation.AnnotationConfigApplicationContext createContext(String name)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.