|
||||||||||
| 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<InterceptorMetadata> |
getDefaultInterceptorMetadata()
|
List<Jsr250Metadata> |
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 |
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(InterceptorMetadata defaultIm)
Add default interceptor metadata to the deploymentUnitMetadata. |
protected void |
registerDeployedComponentMetadata(Jsr250Metadata deployedComponentMetadata)
|
Object |
resolve(Injection injection)
|
void |
setEnvironment(ServiceEnvironment environment)
Set the ServiceEnvironment to be used by this deployment unit. |
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 context
public Object lookup(String name)
throws NamingException
name -
NamingException
public Object resolve(Injection injection)
throws NamingException
NamingExceptionpublic String composeCompenvLookupLocation(String name)
name -
public String composeCompLookupLocation(String name)
public AspectJAdvisorFactory getAspectJAdvisorFactory()
public List<InterceptorMetadata> getDefaultInterceptorMetadata()
public void registerDefaultInterceptorMetadata(InterceptorMetadata defaultIm)
defaultIm - public List<Jsr250Metadata> getDeployedComponentMetadata()
protected void registerDeployedComponentMetadata(Jsr250Metadata deployedComponentMetadata)
public boolean isLimitToSpec()
public void setLimitToSpec(boolean limitToSpec)
limitToSpec - the limitToSpec to set
public void registerApplicationExceptionInfo(Class<? extends Exception> t,
ApplicationExceptionInfo aei)
t - applicationException classaei - applicationExceptionInfopublic ApplicationExceptionInfo getApplicationExceptionInfo(Class<? extends Exception> t)
public void registerContainerControlInterface(Class<?> containerControlInterface)
containerControlInterface - container control interface which
proxies should implement but whose methods will not be
interceptedpublic List<Class<?>> getContainerControlInterfaces()
public void startup()
protected void initEnvironment()
public Map<Class<? extends Exception>,ApplicationExceptionInfo> getApplicationExceptions()
public ServiceEnvironment getEnvironment()
public void setEnvironment(ServiceEnvironment environment)
environment - The environment to set.AutodetectBeanFactoryServiceEnvironment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||