jsr.daemon
Interface DaemonContext


public interface DaemonContext

interface for the service providing container in order to configure a daemon


Method Summary
 void removeAttribute(java.lang.String name)
          method for removing an attribute from a daemon configuration
 void setAttribute(java.lang.String name, java.lang.Object value)
          method for setting an attribute of the daemon configuration attributes can be retrieved via the configuration interface
 void setCapacity(int initialCapacity)
          optional method for initializing the size of a daemon configuration method supplies an estimation for allocating resources
 void setLogger(Logging logger)
          method for supplying a logging interface for a daemon log calls in the logging interface are mapped to no operation if no logger is set
 void setName(java.lang.String name)
          method for naming a daemon a given name can be retrieved via the configuration interface
 

Method Detail

setName

public void setName(java.lang.String name)
method for naming a daemon a given name can be retrieved via the configuration interface
Parameters:
name - the name given to a daemon

setLogger

public void setLogger(Logging logger)
method for supplying a logging interface for a daemon log calls in the logging interface are mapped to no operation if no logger is set
Parameters:
logger - underlying logging resource to be used by a daemon

setCapacity

public void setCapacity(int initialCapacity)
optional method for initializing the size of a daemon configuration method supplies an estimation for allocating resources
Parameters:
initialCapacity - estimated number of attributes supplied by the context

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
method for setting an attribute of the daemon configuration attributes can be retrieved via the configuration interface
Parameters:
name - the name of the attribute to be set
value - the value of the attribute to be set

removeAttribute

public void removeAttribute(java.lang.String name)
method for removing an attribute from a daemon configuration
Parameters:
name - the name of the attribute to be removed