|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.jee.inject.DeploymentUnitMetadata
public class DeploymentUnitMetadata
Metadata associated with whole deployment unit, such as an EJB JAR file. It is possible to find metadata about all deployed components from this.
Constructor Summary | |
---|---|
DeploymentUnitMetadata()
|
Method Summary | |
---|---|
void |
associate(ApplicationContext deploymentContext,
BeanDefinitionRegistry bdr)
Associate this DeploymentUnitMetadata with the given deployment unit level ApplicationContext and corresponding BeanDefinitionRegistry. |
String |
composeCompenvLookupLocation(String name)
Simple method for composing the final location for a name lookup. |
String |
composeCompLookupLocation(String name)
|
ApplicationExceptionInfo |
getApplicationExceptionInfo(Class<? extends Exception> t)
|
Map<Class<? extends Exception>,ApplicationExceptionInfo> |
getApplicationExceptions()
|
AspectJAdvisorFactory |
getAspectJAdvisorFactory()
|
List<Class<?>> |
getContainerControlInterfaces()
|
List<InterceptorMetadataI> |
getDefaultInterceptorMetadata()
|
List<Jsr250MetadataI> |
getDeployedComponentMetadata()
|
ServiceEnvironment |
getEnvironment()
|
Platform |
getTargetPlatform()
Return the target platform for this deployment unit. |
protected void |
initEnvironment()
Used to add a default ServiceEnvironment if none is provided. |
boolean |
isInvokeLifecycleMethod()
|
boolean |
isLimitToSpec()
|
Object |
lookup(String name)
Helper JNDI container-aware lookup method. |
void |
registerApplicationExceptionInfo(Class<? extends Exception> t,
ApplicationExceptionInfo aei)
Register an applicationExceptionInfo. |
void |
registerContainerControlInterface(Class<?> containerControlInterface)
Register the given interface as a container control interface, meaning that it will not be intercepted |
void |
registerDefaultInterceptorMetadata(InterceptorMetadataI defaultIm)
Add default interceptor metadata to the deploymentUnitMetadata. |
protected void |
registerDeployedComponentMetadata(Jsr250Metadata deployedComponentMetadata)
|
Object |
resolve(InjectionI injection)
|
void |
setEnvironment(ServiceEnvironment environment)
Set the ServiceEnvironment to be used by this deployment unit. |
void |
setInvokeLifecycleMethod(boolean invokeLifecycleMethod)
|
void |
setLimitToSpec(boolean limitToSpec)
|
void |
setTargetPlatform(Platform targetPlatform)
|
void |
startup()
Start the deploymentUnitMetada: register the default interceptors and refresh the deploymentUnitContext as well as metadata contexts. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeploymentUnitMetadata()
Method Detail |
---|
public Platform getTargetPlatform()
public void setTargetPlatform(Platform targetPlatform)
public void associate(ApplicationContext deploymentContext, BeanDefinitionRegistry bdr)
deploymentContext
- deployment unit contextbdr
- BeanDefinitionRegistry allowing additions to the contextpublic Object lookup(String name) throws NamingException
name
-
NamingException
public Object resolve(InjectionI injection) throws NamingException
NamingException
public String composeCompenvLookupLocation(String name)
name
-
public String composeCompLookupLocation(String name)
public AspectJAdvisorFactory getAspectJAdvisorFactory()
public List<InterceptorMetadataI> getDefaultInterceptorMetadata()
public void registerDefaultInterceptorMetadata(InterceptorMetadataI defaultIm)
registerDefaultInterceptorMetadata
in interface DeploymentUnitMetadataI
defaultIm
- public List<Jsr250MetadataI> getDeployedComponentMetadata()
getDeployedComponentMetadata
in interface DeploymentUnitMetadataI
protected void registerDeployedComponentMetadata(Jsr250Metadata deployedComponentMetadata)
public boolean isLimitToSpec()
public void setLimitToSpec(boolean limitToSpec)
limitToSpec
- the limitToSpec to setpublic void registerApplicationExceptionInfo(Class<? extends Exception> t, ApplicationExceptionInfo aei)
t
- applicationException classaei
- applicationExceptionInfopublic ApplicationExceptionInfo getApplicationExceptionInfo(Class<? extends Exception> t)
public void registerContainerControlInterface(Class<?> containerControlInterface)
registerContainerControlInterface
in interface DeploymentUnitMetadataI
containerControlInterface
- container control interface which
proxies should implement but whose methods will not be
interceptedpublic List<Class<?>> getContainerControlInterfaces()
public void startup()
startup
in interface DeploymentUnitMetadataI
protected void initEnvironment()
public Map<Class<? extends Exception>,ApplicationExceptionInfo> getApplicationExceptions()
public ServiceEnvironment getEnvironment()
public void setEnvironment(ServiceEnvironment environment)
environment
- The environment to set.AutodetectBeanFactoryServiceEnvironment
public boolean isInvokeLifecycleMethod()
public void setInvokeLifecycleMethod(boolean invokeLifecycleMethod)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |