java.lang.Object
com.ulisesbocchio.jasyptspringboot.configuration.EnvCopy

public class EnvCopy extends Object
Need a copy of the environment without the Enhanced property sources to avoid circular dependencies.
Version:
$Id: $Id
Author:
Sergio.U.Bocchio
  • Constructor Summary

    Constructors
    Constructor
    Description
    EnvCopy(org.springframework.core.env.ConfigurableEnvironment environment)
    Constructor for EnvCopy.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAfter(String relativePropertySourceName, org.springframework.core.env.PropertySource<?> propertySource)
    addAfter.
    void
    addBefore(String relativePropertySourceName, org.springframework.core.env.PropertySource<?> propertySource)
    addBefore.
    void
    addFirst(org.springframework.core.env.PropertySource<?> propertySource)
    addFirst.
    void
    addLast(org.springframework.core.env.PropertySource<?> propertySource)
    addLast.
    org.springframework.core.env.ConfigurableEnvironment
    get()
    get.
    boolean
    isAllowed(org.springframework.core.env.PropertySource<?> propertySource)
    isAllowed.
    org.springframework.core.env.PropertySource<?>
    remove(String name)
    remove.
    void
    replace(String name, org.springframework.core.env.PropertySource<?> propertySource)
    replace.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EnvCopy

      public EnvCopy(org.springframework.core.env.ConfigurableEnvironment environment)

      Constructor for EnvCopy.

      Parameters:
      environment - a ConfigurableEnvironment object
  • Method Details

    • isAllowed

      public boolean isAllowed(org.springframework.core.env.PropertySource<?> propertySource)

      isAllowed.

      Parameters:
      propertySource - a PropertySource object
      Returns:
      a boolean
    • addFirst

      public void addFirst(org.springframework.core.env.PropertySource<?> propertySource)

      addFirst.

      Parameters:
      propertySource - a PropertySource object
    • addLast

      public void addLast(org.springframework.core.env.PropertySource<?> propertySource)

      addLast.

      Parameters:
      propertySource - a PropertySource object
    • addBefore

      public void addBefore(String relativePropertySourceName, org.springframework.core.env.PropertySource<?> propertySource)

      addBefore.

      Parameters:
      relativePropertySourceName - a String object
      propertySource - a PropertySource object
    • addAfter

      public void addAfter(String relativePropertySourceName, org.springframework.core.env.PropertySource<?> propertySource)

      addAfter.

      Parameters:
      relativePropertySourceName - a String object
      propertySource - a PropertySource object
    • replace

      public void replace(String name, org.springframework.core.env.PropertySource<?> propertySource)

      replace.

      Parameters:
      name - a String object
      propertySource - a PropertySource object
    • remove

      public org.springframework.core.env.PropertySource<?> remove(String name)

      remove.

      Parameters:
      name - a String object
      Returns:
      a PropertySource object
    • get

      public org.springframework.core.env.ConfigurableEnvironment get()

      get.

      Returns:
      a ConfigurableEnvironment object