|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.jee.server.Bootstrap
public class Bootstrap
Bootstrap for the JEE container. Each JEE deployment is modelled as a child of a server-level context, and each component also gets its own further child. The deployment-level context contains a Spring singleton definition for each EJB or other JEE component.
Uses the Spring IO abstraction for specifying resource location and resource loading
ResourceLoader
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
log
|
Constructor Summary | |
---|---|
Bootstrap()
Deploy the contributed components, ignoring standard or proprietary deployment descriptors. |
|
Bootstrap(ContainerBootstrap containerBootstrap)
Start the server-level context. |
Method Summary | |
---|---|
org.springframework.context.support.GenericApplicationContext |
deploy()
Deploy the contributed components, ignoring standard or proprietary deployment descriptors. |
org.springframework.context.support.GenericApplicationContext |
deploy(ComponentContributor componentContributor)
Deploy the contributed components, ignoring standard or proprietary deployment descriptors. |
org.springframework.context.support.GenericApplicationContext |
deploy(org.springframework.core.io.ResourceLoader resourceLoader,
ComponentContributor componentContributor)
Deploy the contributed components, also looking for well-known resources using the given ResourceLoader. |
org.springframework.context.support.GenericApplicationContext |
deploy(java.lang.String[] requiredSpringLocations,
org.springframework.core.io.ResourceLoader resourceLoader,
ComponentContributor componentContributor,
DeploymentUnitMetadata deploymentUnitMetadata)
Deploy the contributed components, also looking for well-known resources using the given ResourceLoader. |
org.springframework.context.support.GenericApplicationContext |
deploy(java.lang.String[] requiredSpringLocations,
org.springframework.core.io.ResourceLoader resourceLoader,
ComponentContributor componentContributor,
DeploymentUnitMetadata deploymentUnitMetadata,
java.lang.String... optionalSpringLocations)
Deploy using the given ComponentContributor, also looking for well-known resources using the given ResourceLoader. |
org.springframework.context.support.GenericApplicationContext |
getServerApplicationContext()
Return the application context associated with the server. |
void |
setValidationService(ValidationService validationService)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.commons.logging.Log log
Constructor Detail |
---|
public Bootstrap(ContainerBootstrap containerBootstrap)
public Bootstrap()
Method Detail |
---|
public void setValidationService(ValidationService validationService)
validationService
- the validationService to setpublic org.springframework.context.support.GenericApplicationContext getServerApplicationContext()
public org.springframework.context.support.GenericApplicationContext deploy() throws InvalidDeploymentUnitException
InvalidDeploymentUnitException
public org.springframework.context.support.GenericApplicationContext deploy(ComponentContributor componentContributor) throws InvalidDeploymentUnitException
componentContributor
- source of component metadata
InvalidDeploymentUnitException
public org.springframework.context.support.GenericApplicationContext deploy(org.springframework.core.io.ResourceLoader resourceLoader, ComponentContributor componentContributor) throws InvalidDeploymentUnitException
resourceLoader
- ResourceLoader used to load resources (for example,
from a JAR)componentContributor
- source of component metadata
InvalidDeploymentUnitException
public org.springframework.context.support.GenericApplicationContext deploy(java.lang.String[] requiredSpringLocations, org.springframework.core.io.ResourceLoader resourceLoader, ComponentContributor componentContributor, DeploymentUnitMetadata deploymentUnitMetadata) throws InvalidDeploymentUnitException
requiredSpringLocations
- location of pure Spring files. Spring
resource paths.resourceLoader
- ResourceLoader used to load resources (for example,
from a JAR)componentContributor
- source of component metadatadeploymentUnitMetadata
- may be null, in which case default metadata
will be used
InvalidDeploymentUnitException
public org.springframework.context.support.GenericApplicationContext deploy(java.lang.String[] requiredSpringLocations, org.springframework.core.io.ResourceLoader resourceLoader, ComponentContributor componentContributor, DeploymentUnitMetadata deploymentUnitMetadata, java.lang.String... optionalSpringLocations) throws InvalidDeploymentUnitException
Algorithm: first load annotations for classes, then deployment descriptors (standard, proprietary and Spring), the Spring XML files.
requiredSpringLocations
- location of pure Spring files. Spring
resource paths.optionalSpringLocations
- location of optional pure Spring files.resourceLoader
- ResourceLoader to use to load resources (for
example, from JAR). Standard and proprietary DDs will be
sought at this locationcomponentContributor
- source of component metadatadeploymentUnitMetadata
- DeploymentUnitMetadata for use. May be
null, in which case a default will be used.
InvalidDeploymentUnitException
- if there are errors in the
metadata
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |