Package org.jboss.as.ee.component
Class EEModuleDescription
java.lang.Object
org.jboss.as.ee.component.EEModuleDescription
- All Implemented Interfaces:
ResourceInjectionTarget
- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsConstructorDescriptionEEModuleDescription(String applicationName, String moduleName, String earApplicationName, boolean appClient) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(ComponentDescription description) Add a component to this module.voidaddInterceptorEnvironment(String interceptorClassName, InterceptorEnvironment env) voidaddInterceptorMethodOverride(String className, InterceptorClassDescription override) Adds a module level interceptor class override, it is merged with any existing overrides if they existvoidaddMessageDestination(String name, String jndiName) addOrGetLocalClassDescription(String className) Adds or retrieves an existing EEModuleClassDescription for the local module.voidReturns the application name which can be the same as the module name, in the absence of a .ear top level deploymentReturns all class descriptions in this modulegetComponentByName(String name) getComponentsByClassName(String className) org.jboss.msc.service.ServiceNameUnlike thegetApplicationName()which follows the Jakarta EE spec semantics i.e.getInterceptorClassOverride(String className) Get module level interceptor method overrides that are set up in ejb-jar.xmlgetResourceInjections(String className) intbooleanhasComponent(String name) booleanintvoidremoveComponent(String componentName, String componentClassName) voidsetDefaultClassIntrospectorServiceName(org.jboss.msc.service.ServiceName defaultClassIntrospectorServiceName) voidsetDefaultSecurityDomain(String defaultSecurityDomain) voidsetDistinctName(String distinctName) voidsetModuleName(String moduleName) voidsetNamespaceContextSelector(InjectedEENamespaceContextSelector namespaceContextSelector)
-
Constructor Details
-
EEModuleDescription
public EEModuleDescription(String applicationName, String moduleName, String earApplicationName, boolean appClient) Construct a new instance.- Parameters:
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)appClient- indicates if the process type is an app client
-
-
Method Details
-
addOrGetLocalClassDescription
Adds or retrieves an existing EEModuleClassDescription for the local module. This method should only be used for classes that reside within the current deployment unit, usually by annotation scanners that are attaching annotation information. This- Parameters:
className- The class name- Returns:
- The new or existing
EEModuleClassDescription
-
getClassDescriptions
Returns all class descriptions in this module- Returns:
- All class descriptions
-
getDefaultClassIntrospectorServiceName
public org.jboss.msc.service.ServiceName getDefaultClassIntrospectorServiceName() -
setDefaultClassIntrospectorServiceName
public void setDefaultClassIntrospectorServiceName(org.jboss.msc.service.ServiceName defaultClassIntrospectorServiceName) -
addComponent
Add a component to this module.- Parameters:
description- the component description
-
removeComponent
-
getApplicationName
Returns the application name which can be the same as the module name, in the absence of a .ear top level deployment- Returns:
-
getModuleName
-
hasComponent
-
isAppClient
public boolean isAppClient()- Returns:
- true if the process type is an app client
-
setModuleName
-
getComponentByName
-
getComponentsByClassName
-
getComponentDescriptions
-
getNamespaceContextSelector
-
setNamespaceContextSelector
public void setNamespaceContextSelector(InjectedEENamespaceContextSelector namespaceContextSelector) -
getDistinctName
-
setDistinctName
-
getEarApplicationName
Unlike thegetApplicationName()which follows the Jakarta EE spec semantics i.e. application name is the name of the top level deployment (even if it is just a jar and not an ear), this method returns the application name which follows the Jakarta Enterprise Beans 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 .ear- Returns:
-
getInterceptorClassOverride
Get module level interceptor method overrides that are set up in ejb-jar.xml- Parameters:
className- The class name- Returns:
- The overrides, or null if no overrides have been set up
-
addInterceptorMethodOverride
Adds a module level interceptor class override, it is merged with any existing overrides if they exist- Parameters:
className- The class nameoverride- The override
-
getBindingConfigurations
-
addResourceInjection
- Specified by:
addResourceInjectionin interfaceResourceInjectionTarget
-
getResourceInjections
-
addMessageDestination
-
getMessageDestinations
-
addInterceptorEnvironment
-
getInterceptorEnvironment
-
getConcurrentContext
-
getDefaultResourceJndiNames
-
getDefaultSecurityDomain
-
setDefaultSecurityDomain
-
getStartupBeansCount
public int getStartupBeansCount() -
registerStartupBean
public int registerStartupBean()
-