Package com.helixframework.env
Class HelixEnvironmentHolder
java.lang.Object
com.helixframework.env.HelixEnvironmentHolder
HelixEnvironmentHolder is a component that holds a static reference to a
HelixEnvironment instance. This allows the HelixEnvironment to be
accessed globally within the application.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a HelixEnvironmentHolder with the specified HelixEnvironment. -
Method Summary
Modifier and TypeMethodDescriptionstatic HelixEnvironmentget()Retrieves the current instance of HelixEnvironment held by the HelixEnvironmentHolder.
-
Constructor Details
-
HelixEnvironmentHolder
Constructs a HelixEnvironmentHolder with the specified HelixEnvironment.- Parameters:
env- the HelixEnvironment instance to be held statically
-
-
Method Details
-
get
Retrieves the current instance of HelixEnvironment held by the HelixEnvironmentHolder.- Returns:
- the statically held HelixEnvironment instance
-