org.onebusaway.container
public class ContainerLibrary extends Object
ConfigurableApplicationContext
Spring application container. For more details on the Spring application
container, check out:
http://www.springsource.org/Constructor and Description |
---|
ContainerLibrary() |
Modifier and Type | Method and Description |
---|---|
static org.springframework.context.ConfigurableApplicationContext |
createContext(Iterable<String> paths)
|
static org.springframework.context.ConfigurableApplicationContext |
createContext(Iterable<String> paths,
Map<String,org.springframework.beans.factory.config.BeanDefinition> additionalBeans)
Construct and instantiate a Spring application container from the specified
resources.
|
static org.springframework.context.ConfigurableApplicationContext |
createContext(String... paths)
|
static <T> T |
getBeanOfType(org.springframework.context.ApplicationContext context,
Class<T> beanType) |
public static org.springframework.context.ConfigurableApplicationContext createContext(String... paths)
paths
- resource pathspublic static org.springframework.context.ConfigurableApplicationContext createContext(Iterable<String> paths)
paths
- resource pathspublic static org.springframework.context.ConfigurableApplicationContext createContext(Iterable<String> paths, Map<String,org.springframework.beans.factory.config.BeanDefinition> additionalBeans)
paths
- resource pathsadditionalBeans
- additional bean defintions to include in the contextpublic static <T> T getBeanOfType(org.springframework.context.ApplicationContext context, Class<T> beanType)
Copyright © 2014 OneBusAway. All Rights Reserved.