org.ourgrid.gridmachine.services
Class DefaultGumServicesBuilder

java.lang.Object
  extended by org.ourgrid.gridmachine.services.DefaultGumServicesBuilder
All Implemented Interfaces:
GumServicesBuilder

public class DefaultGumServicesBuilder
extends java.lang.Object
implements GumServicesBuilder

This class defines a kind of GuMServicesBuilder able of creating and validating GuMSpecs of the following types: user_agent, grid_script, ua_gateway, fake_gum.


Constructor Summary
DefaultGumServicesBuilder(GumSpec spec)
          Constructor.
 
Method Summary
 GumCreator getGumCreator()
          Gets an specific GuMCreator according to the GuMSpec passed as parameter to the constructor.
 GumSpecValidator getGumSpecValidator()
          Gets the GuMSpecValidator according to the GuMSpec passed as parameter to the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGumServicesBuilder

public DefaultGumServicesBuilder(GumSpec spec)
                          throws GumSpecificationException
Constructor.

Parameters:
spec - a given GuMSpec.
Throws:
GumSpecificationException - if it is not possible to create a GuMCreator or a GuMSpecValidator for a GuMSpec.
Method Detail

getGumCreator

public GumCreator getGumCreator()
Gets an specific GuMCreator according to the GuMSpec passed as parameter to the constructor.

Specified by:
getGumCreator in interface GumServicesBuilder
Returns:
an object that can create gums.

getGumSpecValidator

public GumSpecValidator getGumSpecValidator()
Gets the GuMSpecValidator according to the GuMSpec passed as parameter to the constructor.

Specified by:
getGumSpecValidator in interface GumServicesBuilder
Returns:
an object that validates gums.