org.apache.avalon.composition.data
Class PermissionDirective
java.lang.Object
org.apache.avalon.composition.data.PermissionDirective
- All Implemented Interfaces:
- Serializable
- public final class PermissionDirective
- extends Object
- implements Serializable
Description of classpath.
- Version:
- $Revision: 1.2 $ $Date: 2004/01/24 23:25:24 $
- Author:
- Avalon Development Team
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PermissionDirective
public PermissionDirective(String classname,
String name,
String action)
throws InstantiationException,
IllegalAccessException,
ClassNotFoundException,
ClassCastException,
InvocationTargetException
- Create a PermissionDirective instance.
- Parameters:
classname
- Permission classname
- The name associated with the permission.action
- The action associated with the permission. Note that some
Permissions doesn't support actions.
- Throws:
InstantiationException
- if the class could not be instantiated.
IllegalAccessException,
- if the class does not have a
public constructor
ClassNotFoundException,
- if the class could not be reached by the
classloader.
ClassCastException,
- if the class is not a subclass of
java.security.Permission
InvocationTargetException,
- if the constructor in the Permission
class throws an exception.
IllegalAccessException
ClassNotFoundException
ClassCastException
InvocationTargetException
getPermission
public Permission getPermission()
- Return the Permission.
- Returns:
- the fileset directives
Copyright © The Apache Software Foundation. All Rights Reserved.