Package org.forgerock.openig.heap
Class EnvironmentHeap
java.lang.Object
org.forgerock.openig.heap.HeapImpl
org.forgerock.openig.heap.EnvironmentHeap
- All Implemented Interfaces:
Heap
The root
Heap
that includes access to the environment additional information.
The default name to access the environment is environment
.
It is possible to provide an alias.-
Constructor Summary
ConstructorDescriptionEnvironmentHeap
(Name name, String bindingName, Environment environment, org.forgerock.config.resolvers.PropertyResolver propertyResolver, StartupMetrics parentStartupMetrics) Builds a new EnvironmentHeap with the givenname
andenvironment
.EnvironmentHeap
(Name name, Environment environment, org.forgerock.config.resolvers.PropertyResolver propertyResolver) Builds a new EnvironmentHeap with the givenname
andenvironment
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the properties from this heap and its parents if any.
-
Constructor Details
-
EnvironmentHeap
public EnvironmentHeap(Name name, Environment environment, org.forgerock.config.resolvers.PropertyResolver propertyResolver) Builds a new EnvironmentHeap with the givenname
andenvironment
.- Parameters:
name
- name of this heapenvironment
- environment to expose in propertiespropertyResolver
- Root property resolver (notnull
)
-
EnvironmentHeap
public EnvironmentHeap(Name name, String bindingName, Environment environment, org.forgerock.config.resolvers.PropertyResolver propertyResolver, StartupMetrics parentStartupMetrics) Builds a new EnvironmentHeap with the givenname
andenvironment
.- Parameters:
name
- name of this heapbindingName
- The name of the environment in the bindingsenvironment
- environment to expose in properties (notnull
)propertyResolver
- Root property resolver (notnull
)parentStartupMetrics
- The parentStartupMetrics
-
-
Method Details
-
getProperties
Description copied from interface:Heap
Returns the properties from this heap and its parents if any.- Specified by:
getProperties
in interfaceHeap
- Overrides:
getProperties
in classHeapImpl
- Returns:
- the properties from this heap and its parents if any.
-