Bees v0.5.0 API

bees.core.resource
Class LoggerFactory

java.lang.Object
  |
  +--bees.core.SpecCapabilityFactory
        |
        +--bees.core.resource.LoggerFactory

public class LoggerFactory
extends SpecCapabilityFactory

A LoggerFactory is used to create new Logger capabilities from existing capabilities.


Constructor Summary
LoggerFactory()
          Construct an empty Logger factory.
 
Method Summary
 Capability create(Capability parent, CapabilitySpec sc)
           
 Logger create(Console console, LoggerSpec ls)
          Create a new Logger from the given capabilities.
 Logger create(Console console, LoggerSpec ls, PermissionSet ps, java.lang.String comment)
          Create a new Logger from the given capabilities.
 Logger create(File file, LoggerSpec ls)
          Create a new Logger from the given capabilities.
 Logger create(File file, LoggerSpec ls, PermissionSet ps, java.lang.String comment)
          Create a new Logger from the given capabilities.
 Logger create(Logger parent, LoggerSpec ls, PermissionSet ps, java.lang.String comment)
          Create a new Logger from the given capabilities.
 Logger create(Logger parent, java.lang.String prefix)
          Create a new Logger from the given capabilities.
 Logger create(Logger parent, java.lang.String prefix, PermissionSet ps)
          Create a new Logger from the given capabilities.
 java.lang.String toString()
           
 
Methods inherited from class bees.core.SpecCapabilityFactory
create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoggerFactory

public LoggerFactory()
Construct an empty Logger factory.
Method Detail

create

public Logger create(Console console,
                     LoggerSpec ls,
                     PermissionSet ps,
                     java.lang.String comment)
Create a new Logger from the given capabilities.
Parameters:
console - The Console capability to be used as output.
ls - The LoggerSpec that specifies the log prefix and level.
ps - The permissions to grant the new Logger capability.
comment - The comment to attach to capability in the kernel.
Returns:
A new Logger capability.

create

public Logger create(Console console,
                     LoggerSpec ls)
Create a new Logger from the given capabilities.
Parameters:
console - The Console capability to be used as the output.
ls - The LoggerSpec that specifies the log prefix and level.
Returns:
A new Logger capability.

create

public Logger create(File file,
                     LoggerSpec ls,
                     PermissionSet ps,
                     java.lang.String comment)
Create a new Logger from the given capabilities.
Parameters:
file - The File capability to be used as the output.
ls - The LoggerSpec that specifies the log prefix and level.
ps - The permissions to grant the new Logger capability.
comment - The comment to attach to capability in the kernel.
Returns:
A new Logger capability.

create

public Logger create(File file,
                     LoggerSpec ls)
Create a new Logger from the given capabilities.
Parameters:
file - The File capability to be used as the output.
ls - The LoggerSpec that specifies the log prefix and level.
Returns:
A new Logger capability.

create

public Capability create(Capability parent,
                         CapabilitySpec sc)
Overrides:
create in class SpecCapabilityFactory
See Also:
SpecCapabilityFactory.create(Capability, CapabilitySpec)

create

public Logger create(Logger parent,
                     LoggerSpec ls,
                     PermissionSet ps,
                     java.lang.String comment)
Create a new Logger from the given capabilities.
Parameters:
parent - The Parent capability to be used as the output and extra prefix.
ls - The LoggerSpec that specifies the log prefix and level.
ps - The permissions to grant the new Logger capability.
comment - The comment to attach to capability in the kernel.
Returns:
A new Logger capability.

create

public Logger create(Logger parent,
                     java.lang.String prefix,
                     PermissionSet ps)
Create a new Logger from the given capabilities.
Parameters:
parent - The Parent capability to be used as the output and extra prefix.
prefix - The prefix for the new Logger capability.
ps - The permissions to grant the new Logger capability.
Returns:
A new Logger capability.

create

public Logger create(Logger parent,
                     java.lang.String prefix)
Create a new Logger from the given capabilities.
Parameters:
parent - The Parent capability to be used as the output and extra prefix.
prefix - The prefix for the new Logger capability.
Returns:
A new Logger capability.

toString

public java.lang.String toString()
Overrides:
toString in class SpecCapabilityFactory
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/