public final class ExtensionIndexService extends Object implements org.jboss.msc.service.Service<ExtensionIndex>, ExtensionIndex
Modifier and Type | Field and Description |
---|---|
static String |
MODULE_PREFIX |
Constructor and Description |
---|
ExtensionIndexService(File... roots) |
Modifier and Type | Method and Description |
---|---|
void |
addDeployedExtension(org.jboss.modules.ModuleIdentifier identifier,
ExtensionInfo extensionInfo)
Adds an extension that has been deployed to the server
|
org.jboss.modules.ModuleIdentifier |
findExtension(String name,
String minSpecVersion,
String minImplVersion,
String requiredVendorId)
Find an extension, returning
null if no matching extension is available. |
ExtensionIndex |
getValue() |
static org.jboss.modules.ModuleIdentifier |
moduleIdentifier(String name,
String minSpecVersion,
String minImplVersion,
String requiredVendorId) |
boolean |
removeDeployedExtension(String name,
org.jboss.modules.ModuleIdentifier identifier)
Removes extension information that has been deployed to the server
|
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public static final String MODULE_PREFIX
public ExtensionIndexService(File... roots)
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<ExtensionIndex>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<ExtensionIndex>
public void addDeployedExtension(org.jboss.modules.ModuleIdentifier identifier, ExtensionInfo extensionInfo)
addDeployedExtension
in interface ExtensionIndex
identifier
- The module identifier of the extensionextensionInfo
- The extension datapublic boolean removeDeployedExtension(String name, org.jboss.modules.ModuleIdentifier identifier)
removeDeployedExtension
in interface ExtensionIndex
name
- The extension nameidentifier
- The extension Identifierpublic org.jboss.modules.ModuleIdentifier findExtension(String name, String minSpecVersion, String minImplVersion, String requiredVendorId)
ExtensionIndex
null
if no matching extension is available.findExtension
in interface ExtensionIndex
name
- the extension nameminSpecVersion
- the minimum spec version to match, or null
to match anyminImplVersion
- the minimum implementation version to match, or null
to match anyrequiredVendorId
- the vendor ID to require, or null
to match anypublic static org.jboss.modules.ModuleIdentifier moduleIdentifier(String name, String minSpecVersion, String minImplVersion, String requiredVendorId)
public ExtensionIndex getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<ExtensionIndex>
IllegalStateException
IllegalArgumentException
Copyright © 2023 JBoss by Red Hat. All rights reserved.