com.griaule.grFinger
Class Context

java.lang.Object
  extended by com.griaule.grFinger.Context

public class Context
extends Object

Contexts are used to allow operations in the GrFinger library to be executed simultaneously. Two operations should not be called simultaneously in the same context because they are not guaranteed to be thread-safe. Creating a new context for each operation that will be executed simultaneously will guarantee that they will be thread-safe. Also each context has its own parameters. So, contexts can be used to allow different situations to use different configuration parameters.


Field Summary
static Context DEFAULT_CONTEXT
          The default context identification.
static Context GR_NO_CONTEXT
          The no context identification.
 
Constructor Summary
Context(GrFinger grFinger)
          Creates a new context.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONTEXT

public static final Context DEFAULT_CONTEXT
The default context identification.


GR_NO_CONTEXT

public static final Context GR_NO_CONTEXT
The no context identification.

Constructor Detail

Context

public Context(GrFinger grFinger)
        throws GrErrorException
Creates a new context.

Parameters:
grFinger - instance of GrFinger.
Throws:
GrErrorException