Interface ApplicationConfiguration
-
- All Known Implementing Classes:
BridgedApplicationConfiguration,DefaultApplicationConfiguration
public interface ApplicationConfigurationThe configuration of the application.- Author:
- Fabio Simeoni
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringcontext()Returns the context path of the applicationApplicationConfigurationcontext(String context)Sets the context path of the applicationStringdescription()Returns the description of the application.ApplicationConfigurationdescription(String description)Sets the description of the application.Set<Exclude>excludes()Returns a set of request paths that should not be subjected to request management.ApplicationConfigurationexcludes(Exclude... excludes)Set<Include>includes()Returns a set of request paths that should be subjected to request management.ApplicationConfigurationincludes(Include... includes)voidmerge(ApplicationConfiguration config)Merges this configuration with another configurationModemode()Returns the management mode of the application.ApplicationConfigurationmode(Mode mode)Sets the management mode of this application.Stringname()Returns the name of the application.ApplicationConfigurationname(String name)Sets the name of the application.Persistencepersistence()Returns the persistence manager of the application.ApplicationConfigurationpersistence(Persistence manager)Sets the persistence manager of the application.booleanproxied()ProxyAddressproxyAddress()ApplicationConfigurationproxyAddress(ProxyAddress proxyaddress)StringserviceClass()Returns the class of the applicationApplicationConfigurationserviceClass(String serviceClass)Sets the class of the application.Set<String>startTokens()Returns the tokens in which the application operates when it first starts.ApplicationConfigurationstartTokens(Set<String> tokens)Sets the tokens in which the application operates when it first starts.voidvalidate()Validates this configuration.Stringversion()Returns the version of the application.ApplicationConfigurationversion(String version)Sets the version of the application.
-
-
-
Method Detail
-
mode
Mode mode()
Returns the management mode of the application.- Returns:
- the management mode
-
context
String context()
Returns the context path of the application- Returns:
- the context path
-
proxied
boolean proxied()
-
context
ApplicationConfiguration context(String context)
Sets the context path of the application- Parameters:
context- the context path- Returns:
- this configuration
-
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
-
proxyAddress
ProxyAddress proxyAddress()
-
proxyAddress
ApplicationConfiguration proxyAddress(ProxyAddress proxyaddress)
-
startTokens
Set<String> startTokens()
Returns the tokens in which the application operates when it first starts.- Returns:
- the tokens
-
startTokens
ApplicationConfiguration startTokens(Set<String> tokens)
Sets the tokens in which the application operates when it first starts.- Parameters:
scopes- the scopes- Returns:
- this configuration
-
persistence
Persistence persistence()
Returns the persistence manager of the application.- Returns:
- the manager
-
excludes
Set<Exclude> excludes()
Returns a set of request paths that should not be subjected to request management.- Returns:
- the set of exclude paths.
-
includes
Set<Include> includes()
Returns a set of request paths that should 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
-
merge
void merge(ApplicationConfiguration config)
Merges this configuration with another configuration- Parameters:
config- the other configuration
-
excludes
ApplicationConfiguration excludes(Exclude... excludes)
-
includes
ApplicationConfiguration includes(Include... includes)
-
-