java.lang.Object
org.jboss.modules.security.LoadedPermissionFactory
- All Implemented Interfaces:
PermissionFactory
A permission factory which instantiates a permission with the given class name.
- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsConstructorDescriptionLoadedPermissionFactory
(ClassLoader classLoader, String className, String targetName, String permissionActions) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionConstruct a new instance of the permission.
-
Constructor Details
-
LoadedPermissionFactory
public LoadedPermissionFactory(ClassLoader classLoader, String className, String targetName, String permissionActions) Construct a new instance.- Parameters:
classLoader
- the class loader from which the permission should 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
-