org.apache.avalon.composition.data
Class PermissionDirective

java.lang.Object
  extended byorg.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

Constructor Summary
PermissionDirective(String classname, String name, String action)
          Create a PermissionDirective instance.
 
Method Summary
 Permission getPermission()
          Return the Permission.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionDirective

public PermissionDirective(String classname,
                           String name,
                           String action)
                    throws InstantiationException,
                           IllegalAccessException,
                           ClassNotFoundException,
                           ClassCastException,
                           InvocationTargetException
Create a PermissionDirective instance.

Parameters:
classname - Permission class
name - 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
Method Detail

getPermission

public Permission getPermission()
Return the Permission.

Returns:
the fileset directives


Copyright © The Apache Software Foundation. All Rights Reserved.