|
||||||||||
| 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 Log |
log
|
| Constructor Summary | |
|---|---|
Enricher(ApplicationContext deploymentContext,
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(GenericApplicationContext deploymentContext)
Convenient method to start up from a GenericApplicationContext, which implements the BeanDefintionRegistry interface as well as the ApplicationContext interface |
|
| Method Summary | |
|---|---|
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 Log log
| Constructor Detail |
|---|
public Enricher(ApplicationContext deploymentContext,
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(GenericApplicationContext deploymentContext)
deploymenContext - application context representing the
deployment unit, which also directly allows BeanDefinition retrieval
and addition| Method 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 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 | |||||||||