JanosVM v1.0 API

edu.utah.janosvm.resources
Class ResourceSpec

java.lang.Object
  |
  +--edu.utah.janosvm.resources.ResourceSpec
Direct Known Subclasses:
ClassPathSpec, ConfigSpec, CPUSpec, FileSystemSpec, IOSpec, LogSpec, MemorySpec, NameSpaceSpec, NativeSpec, StdioSpec

public class ResourceSpec
extends java.lang.Object

Base class for resource specifications.

Author:
Tim Stack, Utah Janos Team

Field Summary
private  boolean found
          Indicates whether this spec was copied from the configuration file, or if it was created by java code.
 
Constructor Summary
ResourceSpec()
           
 
Method Summary
static ResourceSpec find(java.lang.String name)
          Find and create a resource specification with the given name.
private static ResourceSpec nativeFind(java.lang.String name)
          Find and construct a ResourceSpec with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait, wait0
 

Field Detail

found

private boolean found
Indicates whether this spec was copied from the configuration file, or if it was created by java code.
Constructor Detail

ResourceSpec

public ResourceSpec()
Method Detail

nativeFind

private static ResourceSpec nativeFind(java.lang.String name)
Find and construct a ResourceSpec with the given name.
Parameters:
name - Name that corresponds to a resource specification defined in the config file.

find

public static ResourceSpec find(java.lang.String name)
Find and create a resource specification with the given name.
Parameters:
name - Name that corresponds to a resource specification defined in the config file.
Returns:
The ResourceSpec as defined in the config file or NULL if it couldn't be found.

JanosVM v1.0 API

This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003