org.springframework.jee.server
Class EjbBootstrap

java.lang.Object
  extended by org.springframework.jee.server.Bootstrap
      extended by org.springframework.jee.server.EjbBootstrap

public class EjbBootstrap
extends Bootstrap

Customized bootstrap for EJB deployment. Includes the location of an optional Spring EJB deployment descriptor container Spring definitions for any EJBs that, for example, require Spring constructor injection.

Author:
Rod Johnson, Costin Leau

Field Summary
static java.lang.String SPRING_EJB_JAR_XML_LOCATION
          Spring deployment descriptor.
 
Fields inherited from class org.springframework.jee.server.Bootstrap
log
 
Constructor Summary
EjbBootstrap()
           
EjbBootstrap(ContainerBootstrap containerBootstrap)
           
 
Method Summary
 org.springframework.context.support.GenericApplicationContext deploy()
          Deploy the contributed components, ignoring standard or proprietary deployment descriptors.
 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.
 
Methods inherited from class org.springframework.jee.server.Bootstrap
deploy, deploy, deploy, getServerApplicationContext, setValidationService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPRING_EJB_JAR_XML_LOCATION

public static final java.lang.String SPRING_EJB_JAR_XML_LOCATION
Spring deployment descriptor. Contains Spring singleton definitions, without class names, that correspond to EJB names. This allows Spring's more sophisticated dependency injection to be applied to EJB instances.

See Also:
Constant Field Values
Constructor Detail

EjbBootstrap

public EjbBootstrap()

EjbBootstrap

public EjbBootstrap(ContainerBootstrap containerBootstrap)
Method Detail

deploy

public org.springframework.context.support.GenericApplicationContext deploy()
                                                                     throws InvalidDeploymentUnitException
Description copied from class: Bootstrap
Deploy the contributed components, ignoring standard or proprietary deployment descriptors.

Overrides:
deploy in class Bootstrap
Returns:
an application context representing the deployment. This will be a child of the server application context.
Throws:
InvalidDeploymentUnitException

deploy

public org.springframework.context.support.GenericApplicationContext deploy(java.lang.String[] requiredSpringLocations,
                                                                            org.springframework.core.io.ResourceLoader resourceLoader,
                                                                            ComponentContributor componentContributor,
                                                                            DeploymentUnitMetadata deploymentUnitMetadata)
                                                                     throws InvalidDeploymentUnitException
Description copied from class: Bootstrap
Deploy the contributed components, also looking for well-known resources using the given ResourceLoader.

Overrides:
deploy in class Bootstrap
Parameters:
requiredSpringLocations -
resourceLoader -
componentContributor -
deploymentUnitMetadata - may be null, in which case default metadata will be used
Returns:
Throws:
InvalidDeploymentUnitException


Copyright 2006 Interface21. All Rights Reserved.