Package org.jboss.modules.security
Class ModularPermissionFactory
- java.lang.Object
-
- org.jboss.modules.security.ModularPermissionFactory
-
- All Implemented Interfaces:
PermissionFactory
public final class ModularPermissionFactory extends java.lang.Object implements PermissionFactory
A permission factory which instantiates a permission from a module.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description ModularPermissionFactory(ModuleLoader moduleLoader, java.lang.String moduleName, java.lang.String className, java.lang.String targetName, java.lang.String permissionActions)Construct a new instance.ModularPermissionFactory(ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier, java.lang.String className, java.lang.String targetName, java.lang.String permissionActions)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.Permissionconstruct()Construct a new instance of the permission.
-
-
-
Constructor Detail
-
ModularPermissionFactory
@Deprecated public ModularPermissionFactory(ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier, java.lang.String className, java.lang.String targetName, java.lang.String permissionActions)
Deprecated.Construct a new instance.- Parameters:
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 ornullfor nonepermissionActions- the action list to pass to the permission class constructor ornullfor none
-
ModularPermissionFactory
public ModularPermissionFactory(ModuleLoader moduleLoader, java.lang.String moduleName, java.lang.String className, java.lang.String targetName, java.lang.String permissionActions)
Construct a new instance.- Parameters:
moduleLoader- the module loader from which the module is to be loadedmoduleName- the module name from which the permission is to be loadedclassName- the name of the permission classtargetName- the name to pass to the permission class constructor ornullfor nonepermissionActions- the action list to pass to the permission class constructor ornullfor none
-
-
Method Detail
-
construct
public java.security.Permission construct()
Description copied from interface:PermissionFactoryConstruct a new instance of the permission. The instance may be cached.- Specified by:
constructin interfacePermissionFactory- Returns:
- the permission
-
-