org.gcube.smartgears.configuration.application
Interface ApplicationConfiguration

All Known Implementing Classes:
BridgedApplicationConfiguration, DefaultApplicationConfiguration

public interface ApplicationConfiguration

The configuration of the application.

Author:
Fabio Simeoni

Method Summary
 String description()
          Returns the description of the application.
 ApplicationConfiguration description(String description)
          Sets the description of the application.
 Set<String> excludes()
          Returns a set of request paths that should not be subjected to request management.
 Mode mode()
          Returns the management mode of the application.
 ApplicationConfiguration mode(Mode mode)
          Sets the management mode of this application.
 String name()
          Returns the name of the application.
 ApplicationConfiguration name(String name)
          Sets the name of the application.
 Persistence persistence()
          Returns the persistence manager of the application.
 ApplicationConfiguration persistence(Persistence manager)
          Sets the persistence manager of the application.
 String serviceClass()
          Returns the class of the application
 ApplicationConfiguration serviceClass(String serviceClass)
          Sets the class of the application.
 void validate()
          Validates this configuration.
 String version()
          Returns the version of the application.
 ApplicationConfiguration version(String version)
          Sets the version of the application.
 

Method Detail

mode

Mode mode()
Returns the management mode of the application.

Returns:
the management mode

mode

ApplicationConfiguration mode(Mode mode)
Sets the management mode of this application.

Parameters:
the - management mode
Returns:
this configuration

name

String name()
Returns the name of the application.

Returns:
the name

name

ApplicationConfiguration name(String name)
Sets the name of the application.

Parameters:
name - the name
Returns:
this configuration

serviceClass

String serviceClass()
Returns the class of the application

Returns:
the class

serviceClass

ApplicationConfiguration serviceClass(String serviceClass)
Sets the class of the application.

Parameters:
serviceClass - the class
Returns:
this configuration

version

String version()
Returns the version of the application.

Returns:
the version

version

ApplicationConfiguration version(String version)
Sets the version of the application.

Parameters:
version - the version
Returns:
this configuration

description

String description()
Returns the description of the application.

Returns:
the description

description

ApplicationConfiguration description(String description)
Sets the description of the application.

Parameters:
description - the description
Returns:
this configuration

persistence

Persistence persistence()
Returns the persistence manager of the application.

Returns:
the manager

excludes

Set<String> excludes()
Returns a set of request paths that should not be subjected to request management.

Returns:
the set of exclude paths.

persistence

ApplicationConfiguration persistence(Persistence manager)
Sets the persistence manager of the application.

Parameters:
manager - the manager
Returns:
this configuration

validate

void validate()
Validates this configuration.

Throws:
IllegalStateException - if the configuration is not valid


Copyright © 2013. All Rights Reserved.