Bees v0.5.0 API

bees.core.resource
Class SystemClass

java.lang.Object
  |
  +--bees.core.Capability
        |
        +--bees.core.resource.SystemClass

public final class SystemClass
extends Capability

A SystemClass governs access to a single system class.


Field Summary
static PermissionSet DEFAULT_PERMISSIONS
          Default permissions for a SystemClass object.
 
Fields inherited from class bees.core.Capability
DELETE_PERMISSION, id, INVALID_ID
 
Constructor Summary
SystemClass()
          Construct an empty SystemClass capability.
 
Method Summary
 void export()
          Export the contained class from the current Domain's class loader.
protected  void fromBytes(byte[] flattened)
          Bind this capability to the given object.
 java.lang.String getName()
           
static byte[] marshal(java.lang.String name)
          Marshal the argument into a byte array.
 void revoke()
          Revoke access to the capability.
 java.lang.String toString()
           
 
Methods inherited from class bees.core.Capability
checkPermission, clear, clonePermission, deleteCapability, equals, fromBytes, revokedPermission, revokePermission, revokePermissions, valid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_PERMISSIONS

public static final PermissionSet DEFAULT_PERMISSIONS
Default permissions for a SystemClass object.
Constructor Detail

SystemClass

public SystemClass()
Construct an empty SystemClass capability.
Method Detail

marshal

public static byte[] marshal(java.lang.String name)
Marshal the argument into a byte array.
Parameters:
name - The name of the class.
Returns:
A flattened version of the argument.

fromBytes

protected void fromBytes(byte[] flattened)
                  throws java.lang.Exception
Description copied from class: Capability
Bind this capability to the given object.
Overrides:
fromBytes in class Capability
See Also:
Capability.fromBytes(byte[])

revoke

public void revoke()
Description copied from class: Capability
Revoke access to the capability.
Overrides:
revoke in class Capability
See Also:
Capability.revoke()

getName

public java.lang.String getName()
Returns:
The name of the class to allow access to.

export

public void export()
Export the contained class from the current Domain's class loader. In other words, give the current Domain access to the class.

toString

public java.lang.String toString()
Overrides:
toString in class Capability
See Also:
Object.toString()

Bees v0.5.0 API

This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/