|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.jee.inject.Enricher
public class Enricher
Object that can enrich a GenericApplicationContext with JEE metadata.
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
log
|
Constructor Summary | |
---|---|
Enricher(org.springframework.context.ApplicationContext deploymentContext,
org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry)
Create a new Enricher that will act on the given application context, which relates to a deployment unit such as an EJB JAR file |
|
Enricher(org.springframework.context.support.GenericApplicationContext deploymentContext)
Convenient method to start up from a GenericApplicationContext, which implements the BeanDefintionRegistry interface as well as the ApplicationContext interface |
Method Summary | |
---|---|
org.springframework.beans.factory.support.AbstractBeanDefinition |
attach(Jsr250Metadata jsr250)
Attach the following metadata, that may relate to an existing Spring singleton or a new component |
DeploymentUnitMetadata |
getDeploymentUnitMetadata()
|
void |
setDeploymentUnitMetadata(DeploymentUnitMetadata deploymentUnitMetadata)
Optionally override the default DeploymentUnitMetadata, to customize JNDI lookup etc. |
void |
setValidationService(ValidationService validationService)
Set the optional ValidationService. |
void |
startup()
Start the container. |
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 Enricher(org.springframework.context.ApplicationContext deploymentContext, org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry)
deploymentContext
- Spring application context associated
with the deployment unitbeanDefinitionRegistry
- registry allowing singleton definitions to be
manipulated in the deployment unit's context. Can be the same
context if it also implements BeanDefinitionRegistry, otherwise
the BeanDefinitionRegistry associated with itpublic Enricher(org.springframework.context.support.GenericApplicationContext deploymentContext)
deploymenContext
- application context representing the
deployment unit, which also directly allows BeanDefinition retrieval
and additionMethod Detail |
---|
public void setDeploymentUnitMetadata(DeploymentUnitMetadata deploymentUnitMetadata)
deploymentUnitMetadata
- new DefaultDeploymentUnitMetadata
to use for componentspublic DeploymentUnitMetadata getDeploymentUnitMetadata()
public void setValidationService(ValidationService validationService)
validationService
- the validationService to setpublic org.springframework.beans.factory.support.AbstractBeanDefinition attach(Jsr250Metadata jsr250)
jsr250
- JEE metadata
public void startup() throws InvalidDeploymentUnitException
InvalidDeploymentUnitException
- if the metadata is invalid.
This error will be identified before startup.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |