Class EnvCopy
- 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAfter(String relativePropertySourceName, org.springframework.core.env.PropertySource<?> propertySource)addAfter.voidaddBefore(String relativePropertySourceName, org.springframework.core.env.PropertySource<?> propertySource)addBefore.voidaddFirst(org.springframework.core.env.PropertySource<?> propertySource)addFirst.voidaddLast(org.springframework.core.env.PropertySource<?> propertySource)addLast.org.springframework.core.env.ConfigurableEnvironmentget()get.booleanisAllowed(org.springframework.core.env.PropertySource<?> propertySource)isAllowed.org.springframework.core.env.PropertySource<?>remove(String name)remove.voidreplace(String name, org.springframework.core.env.PropertySource<?> propertySource)replace.
-
-
-
Method Detail
-
isAllowed
public boolean isAllowed(org.springframework.core.env.PropertySource<?> propertySource)
isAllowed.
- Parameters:
propertySource- aPropertySourceobject- Returns:
- a boolean
-
addFirst
public void addFirst(org.springframework.core.env.PropertySource<?> propertySource)
addFirst.
- Parameters:
propertySource- aPropertySourceobject
-
addLast
public void addLast(org.springframework.core.env.PropertySource<?> propertySource)
addLast.
- Parameters:
propertySource- aPropertySourceobject
-
addBefore
public void addBefore(String relativePropertySourceName, org.springframework.core.env.PropertySource<?> propertySource)
addBefore.
- Parameters:
relativePropertySourceName- aStringobjectpropertySource- aPropertySourceobject
-
addAfter
public void addAfter(String relativePropertySourceName, org.springframework.core.env.PropertySource<?> propertySource)
addAfter.
- Parameters:
relativePropertySourceName- aStringobjectpropertySource- aPropertySourceobject
-
replace
public void replace(String name, org.springframework.core.env.PropertySource<?> propertySource)
replace.
- Parameters:
name- aStringobjectpropertySource- aPropertySourceobject
-
remove
public org.springframework.core.env.PropertySource<?> remove(String name)
remove.
- Parameters:
name- aStringobject- Returns:
- a
PropertySourceobject
-
get
public org.springframework.core.env.ConfigurableEnvironment get()
get.
- Returns:
- a
ConfigurableEnvironmentobject
-
-