|
||||||||||
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 | |
---|---|
void |
attach(Jsr250MetadataI jsr250)
Attach the following metadata, that may relate to an existing Spring singleton or a new component |
void |
attach(Jsr250MetadataI jsr250,
boolean isSingleton)
|
DeploymentUnitMetadataI |
getDeploymentUnitMetadata()
|
String[] |
getRegisteredBeanDefinitionNames()
|
void |
setDeploymentUnitMetadata(DeploymentUnitMetadataI 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 additionMethod Detail |
---|
public void setDeploymentUnitMetadata(DeploymentUnitMetadataI deploymentUnitMetadata)
setDeploymentUnitMetadata
in interface EnricherI
deploymentUnitMetadata
- new DefaultDeploymentUnitMetadata
to use for componentspublic DeploymentUnitMetadataI getDeploymentUnitMetadata()
getDeploymentUnitMetadata
in interface EnricherI
public void setValidationService(ValidationService validationService)
validationService
- the validationService to setpublic void attach(Jsr250MetadataI jsr250)
attach
in interface EnricherI
jsr250
- JEE metadatapublic void attach(Jsr250MetadataI jsr250, boolean isSingleton)
attach
in interface EnricherI
public void startup() throws InvalidDeploymentUnitException
InvalidDeploymentUnitException
- if the metadata is invalid.
This error will be identified before startup.public String[] getRegisteredBeanDefinitionNames()
getRegisteredBeanDefinitionNames
in interface EnricherI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |