Class ApplicationConfiguration

java.lang.Object
org.gcube.smartgears.configuration.application.ApplicationConfiguration

public class ApplicationConfiguration extends Object
The configuration of a managed app.

Includes the list of its client services.

Author:
Lucio Lelii, Luca Frosini (ISTI-CNR)
  • Constructor Details

    • ApplicationConfiguration

      public ApplicationConfiguration()
      Default constructor.
  • Method Details

    • excludes

      public Set<GCubeExclude> excludes()
      Returns the set of excluded packages or classes.
      Returns:
      the set of exclusions
    • includes

      public Set<GCubeInclude> includes()
      Returns the set of included packages or classes.
      Returns:
      the set of inclusions
    • name

      public String name()
      Returns the application name.
      Returns:
      the application name
    • context

      public String context()
      Returns the application context.
      Returns:
      the application context
    • excludes

      public ApplicationConfiguration excludes(GCubeExclude... excludes)
      Sets the excluded packages or classes.
      Parameters:
      excludes - the exclusions to set
      Returns:
      this configuration for method chaining
    • includes

      public ApplicationConfiguration includes(GCubeInclude... includes)
      Sets the included packages or classes.
      Parameters:
      includes - the inclusions to set
      Returns:
      this configuration for method chaining
    • allowedSecrets

      public ApplicationConfiguration allowedSecrets(String... classNames)
      Sets the allowed secret classes.
      Parameters:
      classNames - the class names of allowed secrets
      Returns:
      this configuration for method chaining
    • allowedSecrets

      public List<String> allowedSecrets()
      Returns the list of allowed secret classes.
      Returns:
      the list of allowed secret class names
    • context

      public ApplicationConfiguration context(String context)
      Sets the application context.
      Parameters:
      context - the context to set
      Returns:
      this configuration for method chaining
    • name

      public ApplicationConfiguration name(String name)
      Sets the application name.
      Parameters:
      name - the name to set
      Returns:
      this configuration for method chaining
    • persistenceConfiguration

      public ApplicationConfiguration persistenceConfiguration(PersistenceConfiguration configuration)
      Sets the persistence configuration.
      Parameters:
      configuration - the persistence configuration to set
      Returns:
      this configuration for method chaining
    • proxable

      public ApplicationConfiguration proxable(boolean proxable)
      Sets whether the application can be proxied.
      Parameters:
      proxable - true if the application can be proxied, false otherwise
      Returns:
      this configuration for method chaining
    • group

      public String group()
      Returns the application group.
      Returns:
      the application group
    • group

      public ApplicationConfiguration group(String group)
      Sets the application group.
      Parameters:
      group - the group to set
      Returns:
      this configuration for method chaining
    • version

      public String version()
      Returns the application version.
      Returns:
      the application version
    • version

      public ApplicationConfiguration version(String version)
      Sets the application version.
      Parameters:
      version - the version to set
      Returns:
      this configuration for method chaining
    • description

      public String description()
      Returns the application description.
      Returns:
      the application description
    • description

      public ApplicationConfiguration description(String description)
      Sets the application description.
      Parameters:
      description - the description to set
      Returns:
      this configuration for method chaining
    • proxable

      public boolean proxable()
      Returns whether the application can be proxied.
      Returns:
      true if the application can be proxied, false otherwise
    • persistenceConfiguration

      public PersistenceConfiguration persistenceConfiguration()
      Returns the persistence configuration.
      Returns:
      the persistence configuration
    • validate

      public void validate()
      Validates this configuration.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      public String toString()
      Overrides:
      toString in class Object