public final class ModularPermissionFactory extends java.lang.Object implements PermissionFactory
Modifier and Type | Field and Description |
---|---|
private static ModulesPrivateAccess |
access |
private java.lang.String |
className |
private java.security.Permission |
instance |
private ModuleIdentifier |
moduleIdentifier |
private ModuleLoader |
moduleLoader |
private java.lang.String |
permissionActions |
private java.lang.String |
targetName |
Constructor and Description |
---|
ModularPermissionFactory(ModuleLoader moduleLoader,
ModuleIdentifier moduleIdentifier,
java.lang.String className,
java.lang.String targetName,
java.lang.String permissionActions)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.security.Permission |
construct()
Construct a new instance of the permission.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
constructFromClass
private final ModuleLoader moduleLoader
private final ModuleIdentifier moduleIdentifier
private final java.lang.String className
private final java.lang.String targetName
private final java.lang.String permissionActions
private volatile java.security.Permission instance
private static final ModulesPrivateAccess access
public ModularPermissionFactory(ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier, java.lang.String className, java.lang.String targetName, java.lang.String permissionActions)
moduleLoader
- the module loader from which the module is to be loadedmoduleIdentifier
- the module identifier from which the permission is to be loadedclassName
- the name of the permission classtargetName
- the name to pass to the permission class constructor or null
for nonepermissionActions
- the action list to pass to the permission class constructor or null
for nonepublic java.security.Permission construct()
PermissionFactory
construct
in interface PermissionFactory