org.gcube.common.ghn.service.configuration
Class Configuration

java.lang.Object
  extended by org.gcube.common.ghn.service.configuration.Configuration

public class Configuration
extends Object

The configuration of a managed app.

Includes the list of its client services.

Author:
Fabio Simeoni

Constructor Summary
Configuration()
           
 
Method Summary
 String description()
          Returns the description of the service.
 Configuration description(String description)
          Sets the description of the service.
 boolean equals(Object obj)
           
 Configuration group(String group)
          Sets the class of the service.
 int hashCode()
           
 Mode mode()
          Returns the management Mode.
 Configuration mode(Mode mode)
          Sets the management mode.
 String name()
          Returns the name of the service.
 Configuration name(String name)
          Sets the name of the service.
 Persistence persistence()
          Returns the LocalPersistence for the service.
 Configuration persistence(Persistence manager)
          Sets the LocalPersistence for the service.
 String serviceClass()
          Returns the class of the service
 List<String> startScopes()
          Returns the start scopes of the service
 Configuration startScopes(String... scopes)
          Sets the start scopes of the service.
 void validate()
           
 String version()
          Returns the version of the service
 Configuration version(String version)
          Sets the version of the service.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configuration

public Configuration()
Method Detail

mode

public Mode mode()
Returns the management Mode.

Returns:
the management mode

name

public String name()
Returns the name of the service.

Returns:
the name of the service

name

public Configuration name(String name)
Sets the name of the service.

Parameters:
name - the name of the service
Returns:
these coordinates

serviceClass

public String serviceClass()
Returns the class of the service

Returns:
the class of the service

group

public Configuration group(String group)
Sets the class of the service.

Parameters:
group - the class of the service
Returns:
these coordinates

version

public String version()
Returns the version of the service

Returns:
the version of the service

version

public Configuration version(String version)
Sets the version of the service.

Parameters:
version - the version of the service
Returns:
these coordinates

description

public String description()
Returns the description of the service.

Returns:
the description of the service

description

public Configuration description(String description)
Sets the description of the service.

Parameters:
description - the description of the service
Returns:
these coordinates

startScopes

public List<String> startScopes()
Returns the start scopes of the service

Returns:
the start scopes

startScopes

public Configuration startScopes(String... scopes)
Sets the start scopes of the service.

Parameters:
scopes - the start scopes of the service
Returns:
this deployment configuration

persistence

public Persistence persistence()
Returns the LocalPersistence for the service.

Returns:
the manager

persistence

public Configuration persistence(Persistence manager)
Sets the LocalPersistence for the service.

Parameters:
manager - the manager
Returns:
this configuration

mode

public Configuration mode(Mode mode)
Sets the management mode.

Parameters:
the - management mode
Returns:
this configuration

validate

public void validate()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013. All Rights Reserved.