Top Description Inners Fields Constructors Methods
org.jboss.modules

public final Class Main

extends Object
Class Inheritance
Imports
java.io.BufferedReader, .File, .IOException, .InputStream, .InputStreamReader, .PrintWriter, java.lang.instrument.Instrumentation, java.lang.management.ManagementFactory, java.lang.reflect.InvocationTargetException, .Method, java.nio.charset.StandardCharsets, java.nio.file.Path, .Paths, java.security.AccessControlContext, .AccessController, .Policy, .PrivilegedAction, .ProtectionDomain, .Provider, .Security, java.util.ArrayList, .Collections, .Iterator, .List, .Properties, .ServiceConfigurationError, .ServiceLoader, java.util.logging.LogManager, java.util.jar.Attributes, .Manifest, java.util.prefs.Preferences, java.util.regex.Matcher, .Pattern, org.jboss.modules.log.JDKModuleLogger, .StreamModuleLogger

The main entry point of JBoss Modules when run as a JAR on the command line.
Authors
David M. Lloyd, Richard Opalka, Jason T. Greene

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv static volatile Instrumentation
private static final String
private static final String[]
private static final String

Constructor Summary

AccessConstructor and Description
private
Main()

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the name
getJarName
()

Get the name of the JBoss Modules JAR.

private static AccessControlContext
getProviderContext(final Class<? extends Provider> providerClass)

Deprecated as a consequence of AccessControlContext being deprecated.
private static String
getServiceName(ClassLoader classLoader, String className)

public static String

Returns:

the version string
getVersionString
()

Get the version string of JBoss Modules.

public static void
main(String[]
the command-line arguments
args
)

Run JBoss Modules.

private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

instrumentationback to summary
pack-priv static volatile Instrumentation instrumentation
JAR_NAMEback to summary
private static final String JAR_NAME
NO_STRINGSback to summary
private static final String[] NO_STRINGS
VERSION_STRINGback to summary
private static final String VERSION_STRING

Constructor Detail

Mainback to summary
private Main()

Method Detail

getJarNameback to summary
public static String getJarName()

Get the name of the JBoss Modules JAR.

Returns:String

the name

getProviderContextback to summary
private static AccessControlContext getProviderContext(final Class<? extends Provider> providerClass)

Deprecated

as a consequence of AccessControlContext being deprecated. See corresponding docs for further information.

getServiceNameback to summary
private static String getServiceName(ClassLoader classLoader, String className) throws IOException
getVersionStringback to summary
public static String getVersionString()

Get the version string of JBoss Modules.

Returns:String

the version string

mainback to summary
public static void main(String[] args) throws Throwable

Run JBoss Modules.

Parameters
args:String[]

the command-line arguments

Exceptions
Throwable:
if an error occurs
usageback to summary
private static void usage()
org.jboss.modules back to summary

pack-priv final Class Main.AddProviderAction

extends Object
implements PrivilegedAction<Void>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedAction

Field Summary

Modifier and TypeField and Description
private final Provider

Constructor Summary

AccessConstructor and Description
pack-priv
AddProviderAction(final Provider provider)

Method Summary

Modifier and TypeMethod and Description
public Void
run()

Implements java.security.PrivilegedAction.run.

Performs the computation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

providerback to summary
private final Provider provider

Constructor Detail

AddProviderActionback to summary
pack-priv AddProviderAction(final Provider provider)

Method Detail

runback to summary
public Void run()

Implements java.security.PrivilegedAction.run.

Doc from java.security.PrivilegedAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:Void

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedAction should document what (if anything) this value represents.