public final class EEModuleDescription extends Object implements ResourceInjectionTarget
Constructor and Description |
---|
EEModuleDescription(String applicationName,
String moduleName,
String earApplicationName)
Construct a new instance.
|
public EEModuleDescription(String applicationName, String moduleName, String earApplicationName)
applicationName
- the application name (which is same as the module name if the .ear is absent)moduleName
- the module nameearApplicationName
- The application name (which is null if the .ear is absent)public EEModuleClassDescription addOrGetLocalClassDescription(String className)
className
- The class nameEEModuleClassDescription
public Collection<EEModuleClassDescription> getClassDescriptions()
public void addComponent(ComponentDescription description)
description
- the component descriptionpublic String getApplicationName()
#getEarApplicationName()}
public String getModuleName()
public boolean hasComponent(String name)
public void setModuleName(String moduleName)
public ComponentDescription getComponentByName(String name)
public List<ComponentDescription> getComponentsByClassName(String className)
public Collection<ComponentDescription> getComponentDescriptions()
public InjectedEENamespaceContextSelector getNamespaceContextSelector()
public void setNamespaceContextSelector(InjectedEENamespaceContextSelector namespaceContextSelector)
public String getDistinctName()
public void setDistinctName(String distinctName)
public String getEarApplicationName()
getApplicationName()
which follows the Java EE6 spec semantics i.e. application name is the
name of the top level deployment (even if it is just a jar and not a ear), this method returns the
application name which follows the EJB spec semantics i.e. the application name is the
.ear name or any configured value in application.xml. This method returns null in the absence of a .earpublic InterceptorClassDescription getInterceptorClassOverride(String className)
className
- The class namepublic void addInterceptorMethodOverride(String className, InterceptorClassDescription override)
className
- The class nameoverride
- The overridepublic List<BindingConfiguration> getBindingConfigurations()
public void addResourceInjection(ResourceInjectionConfiguration injection)
addResourceInjection
in interface ResourceInjectionTarget
public Map<InjectionTarget,ResourceInjectionConfiguration> getResourceInjections(String className)
public void addInterceptorEnvironment(String interceptorClassName, InterceptorEnvironment env)
public Map<String,InterceptorEnvironment> getInterceptorEnvironment()
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.