Class ModuleDependency

    • Constructor Detail

      • ModuleDependency

        public ModuleDependency​(org.jboss.modules.ModuleLoader moduleLoader,
                                String identifier,
                                boolean optional,
                                boolean export,
                                boolean importServices,
                                boolean userSpecified)
        Construct a new instance.
        Parameters:
        moduleLoader - the module loader of the dependency (if null, then use the default server module loader)
        identifier - the module identifier
        optional - true if this is an optional dependency
        export - true if resources should be exported by default
        importServices - true if the dependent module should be able to load services from the dependency
        userSpecified - true if this dependency was specified by the user, false if it was automatically added
      • ModuleDependency

        @Deprecated(forRemoval=true)
        public ModuleDependency​(org.jboss.modules.ModuleLoader moduleLoader,
                                String identifier,
                                boolean optional,
                                boolean export,
                                boolean importServices,
                                boolean userSpecified,
                                String reason)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Construct a new instance.
        Parameters:
        moduleLoader - the module loader of the dependency (if null, then use the default server module loader)
        identifier - the module identifier
        optional - true if this is an optional dependency
        export - true if resources should be exported by default
        importServices - true if the dependent module should be able to load services from the dependency
        userSpecified - true if this dependency was specified by the user, false if it was automatically added
        reason - reason for adding implicit module dependency
      • ModuleDependency

        @Deprecated(forRemoval=true)
        public ModuleDependency​(org.jboss.modules.ModuleLoader moduleLoader,
                                org.jboss.modules.ModuleIdentifier identifier,
                                boolean optional,
                                boolean export,
                                boolean importServices,
                                boolean userSpecified)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Construct a new instance.
        Parameters:
        moduleLoader - the module loader of the dependency (if null, then use the default server module loader)
        identifier - the module identifier
        optional - true if this is an optional dependency
        export - true if resources should be exported by default
        importServices - true if the dependent module should be able to load services from the dependency
        userSpecified - true if this dependency was specified by the user, false if it was automatically added
      • ModuleDependency

        @Deprecated(forRemoval=true)
        public ModuleDependency​(org.jboss.modules.ModuleLoader moduleLoader,
                                org.jboss.modules.ModuleIdentifier identifier,
                                boolean optional,
                                boolean export,
                                boolean importServices,
                                boolean userSpecified,
                                String reason)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Construct a new instance.
        Parameters:
        moduleLoader - the module loader of the dependency (if null, then use the default server module loader)
        identifier - the module identifier
        optional - true if this is an optional dependency
        export - true if resources should be exported by default
        importServices - true if the dependent module should be able to load services from the dependency
        userSpecified - true if this dependency was specified by the user, false if it was automatically added
        reason - reason for adding implicit module dependency
    • Method Detail

      • getModuleLoader

        public org.jboss.modules.ModuleLoader getModuleLoader()
      • getIdentifier

        @Deprecated(forRemoval=true)
        public org.jboss.modules.ModuleIdentifier getIdentifier()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getDependencyModule

        public String getDependencyModule()
        Gets the name of the module upon which there is a dependency.
        Returns:
        the canonical form of the name of module
      • isOptional

        public boolean isOptional()
      • isExport

        public boolean isExport()
      • isUserSpecified

        public boolean isUserSpecified()
      • addImportFilter

        public void addImportFilter​(org.jboss.modules.filter.PathFilter pathFilter,
                                    boolean include)
      • addExportFilter

        public void addExportFilter​(org.jboss.modules.filter.PathFilter pathFilter,
                                    boolean include)
      • isImportServices

        public boolean isImportServices()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object