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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ModulesPrivateAccessprivate final Stringprivate Permissionprivate final ModuleIdentifierprivate final ModuleLoaderprivate final Stringprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionModularPermissionFactory(ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier, String className, String targetName, String permissionActions) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionConstruct a new instance of the permission.
-
Field Details
-
moduleLoader
-
moduleIdentifier
-
className
-
targetName
-
permissionActions
-
instance
-
access
-
-
Constructor Details
-
ModularPermissionFactory
public ModularPermissionFactory(ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier, String className, String targetName, String permissionActions) 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
-
-
Method Details
-
construct
Description copied from interface:PermissionFactoryConstruct a new instance of the permission. The instance may be cached.- Specified by:
constructin interfacePermissionFactory- Returns:
- the permission
-