ee/src/main/java/org/jboss/as/ee/component/EEModuleDescription.java
public void addComponent(ComponentDescription description) {
        final String componentName = description.getComponentName();
        final String componentClassName = description.getComponentClassName();
        if (componentName == null) {
            throw EeLogger.ROOT_LOGGER.nullVar("componentName", "module", moduleName);
        }
        if (componentClassName == null) {
            throw EeLogger.ROOT_LOGGER.nullVar("componentClassName","module", moduleName);
        }
        if (componentsByName.containsKey(componentName)) {
            throw EeLogger.ROOT_LOGGER.componentAlreadyDefined(componentName);
        }
        componentsByName.put(componentName, description);
        List<ComponentDescription> list = componentsByClassName.get(componentClassName);
        if (list == null) {
            componentsByClassName.put(componentClassName, list = new ArrayList<ComponentDescription>(1));
        }
        list.add(description);
    }
public void addComponent(ComponentDescription description) {
        final String componentName = description.getComponentName();
        final String componentClassName = description.getComponentClassName();
        if (componentName == null) {
            throw EeLogger.ROOT_LOGGER.nullVar("componentName", "module", moduleName);
        }
        if (componentClassName == null) {
            throw EeLogger.ROOT_LOGGER.nullVar("componentClassName","module", moduleName);
        }
        if (componentsByName.containsKey(componentName)) {
            throw EeLogger.ROOT_LOGGER.componentAlreadyDefined(componentName);
        }
        componentsByName.put(componentName, description);
        List<ComponentDescription> list = componentsByClassName.get(componentClassName);
        if (list == null) {
            componentsByClassName.put(componentClassName, list = new ArrayList<ComponentDescription>(1));
        }
        list.add(description);
    }
public void addComponent ( ComponentDescription description ) { final String componentName = description . getComponentName ( ) ; final String componentClassName = description . getComponentClassName ( ) ; if ( componentName == null ) { throw EeLogger . ROOT_LOGGER . nullVar ( "componentName" , "module" , moduleName ) ; } if ( componentClassName == null ) { throw EeLogger . ROOT_LOGGER . nullVar ( "componentClassName" , "module" , moduleName ) ; } if ( componentsByName . containsKey ( componentName ) ) { throw EeLogger . ROOT_LOGGER . componentAlreadyDefined ( componentName ) ; } componentsByName . put ( componentName , description ) ; List < ComponentDescription > list = componentsByClassName . get ( componentClassName ) ; if ( list == null ) { componentsByClassName . put ( componentClassName , list = new ArrayList < ComponentDescription > ( 1 ) ) ; } list . add ( description ) ; }
Add a component to this module.

@param description the component description
Add a component to this module .