org.gcube.common.core.contexts.ghn
Class Builder

java.lang.Object
  extended by org.gcube.common.core.contexts.ghn.Builder

public class Builder
extends Object

GHN builder: build and update a GHN resource

Author:
Manuele Simi (CNR-ISTI)

Constructor Summary
Builder()
           
 
Method Summary
static void createGHNResource(GHNContext context)
          Initialises the GHN resource within a given GHNContext
static void updateGHNResource(GHNContext context, boolean... startup)
          Used internally to update the GHN resource within a given GHNContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Builder

public Builder()
Method Detail

createGHNResource

public static void createGHNResource(GHNContext context)
                              throws GCUBEResource.InvalidScopeException
Initialises the GHN resource within a given GHNContext

Parameters:
context - the context.
Throws:
GCUBEResource.InvalidScopeException - if no valid scope is found for the GHN.

updateGHNResource

public static void updateGHNResource(GHNContext context,
                                     boolean... startup)
Used internally to update the GHN resource within a given GHNContext.

Parameters:
context - the context
startup - states if it is the first update


Copyright © 2012. All Rights Reserved.