org.springframework.jee.server
Interface ContainerBootstrap

All Known Implementing Classes:
DefaultContainerBootstrap

public interface ContainerBootstrap

Interface to be implemented by classes that can bootstrap a Spring container, for example to start a Spring deployment unit within a server environment.

Author:
Rod Johnson

Method Summary
 GenericApplicationContext bootstrap(ApplicationContext parent, String[] requiredLocations, String[] optionalLocations, ResourceLoader resourceLoader)
          Start a Spring container preloading from the given locations
 

Method Detail

bootstrap

GenericApplicationContext bootstrap(ApplicationContext parent,
                                    String[] requiredLocations,
                                    String[] optionalLocations,
                                    ResourceLoader resourceLoader)
Start a Spring container preloading from the given locations

Parameters:
parent - parent context, may be null
requiredLocations - Spring locations that must be loadable (using the given ResourceLoader) for the deployment to succeed
optionalLocations - Spring locations that will be processed if present. Not an error if one or more are unavailable.
resourceLoader - Spring ResourceLoader to use to load locations. May be null
Returns:
a new Spring container with the given parent and having loaded singleton definitions from the locations


Copyright © 2006-2008 SpringSource (formerly Interface21). All Rights Reserved.