Package org.jboss.modules.security
Class ModularPermissionFactory
java.lang.Object
org.jboss.modules.security.ModularPermissionFactory
- All Implemented Interfaces:
PermissionFactory
A permission factory which instantiates a permission from a module.
- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsConstructorDescriptionModularPermissionFactory
(ModuleLoader moduleLoader, String moduleName, String className, String targetName, String permissionActions) Construct a new instance.ModularPermissionFactory
(ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier, String className, String targetName, String permissionActions) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionConstruct a new instance of the permission.
-
Constructor Details
-
ModularPermissionFactory
@Deprecated public ModularPermissionFactory(ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier, String className, String targetName, 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 ornull
for nonepermissionActions
- the action list to pass to the permission class constructor ornull
for none
-
ModularPermissionFactory
public ModularPermissionFactory(ModuleLoader moduleLoader, String moduleName, String className, String targetName, 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 ornull
for nonepermissionActions
- the action list to pass to the permission class constructor ornull
for none
-
-
Method Details
-
construct
Description copied from interface:PermissionFactory
Construct a new instance of the permission. The instance may be cached.- Specified by:
construct
in interfacePermissionFactory
- Returns:
- the permission
-
ModularPermissionFactory(ModuleLoader, String, String, String, String)
instead.