Top Description Fields Constructors Methods
org.jboss.modules.security

public final Class ModularPermissionFactory

extends Object
implements PermissionFactory
Class Inheritance
All Implemented Interfaces
org.jboss.modules.security.PermissionFactory
Imports
java.security.Permission, org.jboss.modules.Module, .ModuleIdentifier, .ModuleLoader, org.jboss.modules._private.ModulesPrivateAccess

A permission factory which instantiates a permission from a module.
Author
David M. Lloyd

Field Summary

Modifier and TypeField and Description
private static final ModulesPrivateAccess
private final String
private volatile Permission
private final ModuleLoader
private final String
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
ModularPermissionFactory(final ModuleLoader
the module loader from which the module is to be loaded
moduleLoader
,
final ModuleIdentifier
the module identifier from which the permission is to be loaded
moduleIdentifier
,
final String
the name of the permission class
className
,
final String
the name to pass to the permission class constructor or null for none
targetName
,
final String
the action list to pass to the permission class constructor or null for none
permissionActions
)

Construct a new instance.
public
ModularPermissionFactory(final ModuleLoader
the module loader from which the module is to be loaded
moduleLoader
,
final String
the module name from which the permission is to be loaded
moduleName
,
final String
the name of the permission class
className
,
final String
the name to pass to the permission class constructor or null for none
targetName
,
final String
the action list to pass to the permission class constructor or null for none
permissionActions
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public Permission
construct()

Implements org.jboss.modules.security.PermissionFactory.construct.

Construct a new instance of the permission.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accessback to summary
private static final ModulesPrivateAccess access
classNameback to summary
private final String className
instanceback to summary
private volatile Permission instance
moduleLoaderback to summary
private final ModuleLoader moduleLoader
moduleNameback to summary
private final String moduleName
permissionActionsback to summary
private final String permissionActions
targetNameback to summary
private final String targetName

Constructor Detail

ModularPermissionFactoryback to summary
public ModularPermissionFactory(final ModuleLoader moduleLoader, final ModuleIdentifier moduleIdentifier, final String className, final String targetName, final String permissionActions)

Construct a new instance.

Parameters
moduleLoader:ModuleLoader

the module loader from which the module is to be loaded

moduleIdentifier:ModuleIdentifier

the module identifier from which the permission is to be loaded

className:String

the name of the permission class

targetName:String

the name to pass to the permission class constructor or null for none

permissionActions:String

the action list to pass to the permission class constructor or null for none

Annotations
@Deprecated
ModularPermissionFactoryback to summary
public ModularPermissionFactory(final ModuleLoader moduleLoader, final String moduleName, final String className, final String targetName, final String permissionActions)

Construct a new instance.

Parameters
moduleLoader:ModuleLoader

the module loader from which the module is to be loaded

moduleName:String

the module name from which the permission is to be loaded

className:String

the name of the permission class

targetName:String

the name to pass to the permission class constructor or null for none

permissionActions:String

the action list to pass to the permission class constructor or null for none

Method Detail

constructback to summary
public Permission construct()

Implements org.jboss.modules.security.PermissionFactory.construct.

Doc from org.jboss.modules.security.PermissionFactory.construct.

Construct a new instance of the permission. The instance may be cached.

Returns:Permission

the permission