Class EnvCopy
java.lang.Object
com.ulisesbocchio.jasyptspringboot.configuration.EnvCopy
Need a copy of the environment without the Enhanced property sources to avoid circular dependencies.
- Version:
- $Id: $Id
- Author:
- Sergio.U.Bocchio
-
Constructor Summary
ConstructorsConstructorDescriptionEnvCopy(org.springframework.core.env.ConfigurableEnvironment environment) Constructor for EnvCopy. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAfter(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.voidreplace.
-
Constructor Details
-
EnvCopy
public EnvCopy(org.springframework.core.env.ConfigurableEnvironment environment) Constructor for EnvCopy.
- Parameters:
environment- aConfigurableEnvironmentobject
-
-
Method Details
-
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
replace.
- Parameters:
name- aStringobjectpropertySource- aPropertySourceobject
-
remove
remove.
- Parameters:
name- aStringobject- Returns:
- a
PropertySourceobject
-
get
public org.springframework.core.env.ConfigurableEnvironment get()get.
- Returns:
- a
ConfigurableEnvironmentobject
-