org.springframework.beans.factory.deployment
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
 org.springframework.context.support.GenericApplicationContext bootstrap(org.springframework.context.ApplicationContext parent, java.lang.String[] requiredLocations, java.lang.String[] optionalLocations, org.springframework.core.io.ResourceLoader resourceLoader)
          Start a Spring container preloading from the given locations
 

Method Detail

bootstrap

org.springframework.context.support.GenericApplicationContext bootstrap(org.springframework.context.ApplicationContext parent,
                                                                        java.lang.String[] requiredLocations,
                                                                        java.lang.String[] optionalLocations,
                                                                        org.springframework.core.io.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 Interface21. All Rights Reserved.