org.oddjob.scheduling
Class JobToken

java.lang.Object
  extended by org.oddjob.scheduling.JobToken
All Implemented Interfaces:
Serializable

public class JobToken
extends Object
implements Serializable

See Also:
Serialized Form

Method Summary
static JobToken create(BeanRegistry registry, Object job)
          Create a job token for the given job using the given registry.
static Object retrieve(BeanDirectory registry, JobToken token)
          Retrieve a job from a ComponentRegistry from it's token.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static JobToken create(BeanRegistry registry,
                              Object job)
Create a job token for the given job using the given registry.

Parameters:
registry - The component registry.
job - The job.
Returns:

retrieve

public static Object retrieve(BeanDirectory registry,
                              JobToken token)
                       throws ArooaPropertyException
Retrieve a job from a ComponentRegistry from it's token.

Parameters:
registry - The component registry.
token - The job token.
Returns:
The actual job.
Throws:
ArooaPropertyException

toString

public String toString()
Overrides:
toString in class Object