| Modifier and Type | Class and Description |
|---|---|
| public static class | JavaPropsMapper.
Base implementation for "Vanilla" |
| private static class | JavaPropsMapper.
Helper class to contain dynamically constructed "shared" instance of
mapper, should one be needed via |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Properties | |
| public static JavaPropsMapper. | |
| public static JavaPropsMapper. | |
| public <T> T | readEnvVariablesAs(JavaPropsSchema schema, Class<T> valueType)
Convenience method, functionally equivalent to: readPropertiesAs(convertMapToProperties(System.getenv()), schema, valueType); |
| public <T> T | readEnvVariablesAs(JavaPropsSchema schema, JavaType valueType)
Convenience method, functionally equivalent to: readPropertiesAs(convertMapToProperties(System.getenv()), schema, valueType); |
| public <T> T | |
| public <T> T | |
| public <T> T | |
| public <T> T | |
| public <T> T | readPropertiesAs(Properties props, JavaPropsSchema schema, Class<T> valueType)
Convenience method which uses given `Properties` as the source as if they had been read from an external source, processes them (splits paths etc), and then binds as given result value. |
| public <T> T | readPropertiesAs(Properties props, JavaPropsSchema schema, JavaType valueType)
Convenience method which uses given `Properties` as the source as if they had been read from an external source, processes them (splits paths etc), and then binds as given result value. |
| public <T> T | readPropertiesAs(Properties props, Class<T> valueType)
Convenience method, functionally equivalent to: readPropertiesAs(props, JavaPropsSchema.emptySchema(), valueType); |
| public <T> T | readPropertiesAs(Properties props, JavaType valueType)
Convenience method, functionally equivalent to: readPropertiesAs(props, JavaPropsSchema.emptySchema(), valueType); |
| protected Object | |
| public <T> T | readSystemPropertiesAs(JavaPropsSchema schema, Class<T> valueType)
Convenience method, functionally equivalent to: readPropertiesAs(System.getProperties(), schema, valueType); |
| public <T> T | readSystemPropertiesAs(JavaPropsSchema schema, JavaType valueType)
Convenience method, functionally equivalent to: readPropertiesAs(System.getProperties(), schema, valueType); |
| public JavaPropsMapper. | rebuild()
Overrides tools. Method for creating a new |
| public static JavaPropsMapper | shared()
Accessor method for getting globally shared "default" |
| public JavaPropsFactory | tokenStreamFactory()
Overrides tools. Method that can be used to get hold of |
| public Version | version()
Overrides tools. Implements tools. Method that will return version information stored in and read from jar that contains this class. |
| protected Object | |
| public void | writeValue(Map<?, ?> target, Object value)
Convenience method that "writes" given `value` as properties
in given |
| public void | writeValue(Map<?, ?> target, Object value, JavaPropsSchema schema)
Convenience method that "writes" given `value` as properties
in given |
| public Map | writeValueAsMap(Object value)
Convenience method that serializes given value but so that results are
stored in a newly constructed |
| public Map | writeValueAsMap(Object value, JavaPropsSchema schema)
Convenience method that serializes given value but so that results are
stored in given |
| public Properties | writeValueAsProperties(Object value)
Convenience method that serializes given value but so that results are
stored in a newly constructed |
| public Properties | writeValueAsProperties(Object value, JavaPropsSchema schema)
Convenience method that serializes given value but so that results are
stored in given |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| JavaPropsMapper | back to summary |
|---|---|
| public JavaPropsMapper() | |
| JavaPropsMapper | back to summary |
|---|---|
| public JavaPropsMapper(JavaPropsFactory f) | |
| JavaPropsMapper | back to summary |
|---|---|
| public JavaPropsMapper(JavaPropsMapper. | |
| _env | back to summary |
|---|---|
| protected Properties _env() | |
| builder | back to summary |
|---|---|
| public static JavaPropsMapper. | |
| builder | back to summary |
|---|---|
| public static JavaPropsMapper. | |
| readEnvVariablesAs | back to summary |
|---|---|
| public <T> T readEnvVariablesAs(JavaPropsSchema schema, Class<T> valueType) throws IOException Convenience method, functionally equivalent to: readPropertiesAs(convertMapToProperties(System.getenv()), schema, valueType); | |
| readEnvVariablesAs | back to summary |
|---|---|
| public <T> T readEnvVariablesAs(JavaPropsSchema schema, JavaType valueType) throws IOException Convenience method, functionally equivalent to: readPropertiesAs(convertMapToProperties(System.getenv()), schema, valueType); | |
| readMapAs | back to summary |
|---|---|
| public <T> T readMapAs(Map<String, String> map, JavaPropsSchema schema, Class<T> valueType) throws IOException Convenience method which uses given `Properties` as the source as if they had been read from an external source, processes them (splits paths etc), and then binds as given result value.
Note that this is NOT identical to calling
| |
| readMapAs | back to summary |
|---|---|
| public <T> T readMapAs(Map<String, String> map, JavaPropsSchema schema, JavaType valueType) throws IOException Convenience method which uses given `Properties` as the source as if they had been read from an external source, processes them (splits paths etc), and then binds as given result value.
Note that this is NOT identical to calling
| |
| readMapAs | back to summary |
|---|---|
| public <T> T readMapAs(Map<String, String> map, Class<T> valueType) throws IOException Convenience method, functionally equivalent to: readPropertiesAs(props, JavaPropsSchema.emptySchema(), valueType); | |
| readMapAs | back to summary |
|---|---|
| public <T> T readMapAs(Map<String, String> map, JavaType valueType) throws IOException Convenience method, functionally equivalent to: readPropertiesAs(props, JavaPropsSchema.emptySchema(), valueType); | |
| readPropertiesAs | back to summary |
|---|---|
| public <T> T readPropertiesAs(Properties props, JavaPropsSchema schema, Class<T> valueType) throws IOException Convenience method which uses given `Properties` as the source as if they had been read from an external source, processes them (splits paths etc), and then binds as given result value.
Note that this is NOT identical to calling
| |
| readPropertiesAs | back to summary |
|---|---|
| public <T> T readPropertiesAs(Properties props, JavaPropsSchema schema, JavaType valueType) throws IOException Convenience method which uses given `Properties` as the source as if they had been read from an external source, processes them (splits paths etc), and then binds as given result value.
Note that this is NOT identical to calling
| |
| readPropertiesAs | back to summary |
|---|---|
| public <T> T readPropertiesAs(Properties props, Class<T> valueType) throws IOException Convenience method, functionally equivalent to: readPropertiesAs(props, JavaPropsSchema.emptySchema(), valueType); | |
| readPropertiesAs | back to summary |
|---|---|
| public <T> T readPropertiesAs(Properties props, JavaType valueType) throws IOException Convenience method, functionally equivalent to: readPropertiesAs(props, JavaPropsSchema.emptySchema(), valueType); | |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() Overrides tools.
| |
| readSystemPropertiesAs | back to summary |
|---|---|
| public <T> T readSystemPropertiesAs(JavaPropsSchema schema, Class<T> valueType) throws IOException Convenience method, functionally equivalent to: readPropertiesAs(System.getProperties(), schema, valueType); | |
| readSystemPropertiesAs | back to summary |
|---|---|
| public <T> T readSystemPropertiesAs(JavaPropsSchema schema, JavaType valueType) throws IOException Convenience method, functionally equivalent to: readPropertiesAs(System.getProperties(), schema, valueType); | |
| rebuild | back to summary |
|---|---|
| public JavaPropsMapper. Overrides tools. Doc from tools. Method for creating a new
| |
| shared | back to summary |
|---|---|
| public static JavaPropsMapper shared() Accessor method for getting globally shared "default" | |
| tokenStreamFactory | back to summary |
|---|---|
| public JavaPropsFactory tokenStreamFactory() Overrides tools. Doc from tools. Method that can be used to get hold of Warning note that all
| |
| version | back to summary |
|---|---|
| public Version version() Overrides tools. Implements tools. Doc from tools. Method that will return version information stored in and read from jar that contains this class.
| |
| writeReplace | back to summary |
|---|---|
| protected Object writeReplace() Overrides tools.
| |
| writeValue | back to summary |
|---|---|
| public void writeValue(Map<?, ?> target, Object value) throws IOException Convenience method that "writes" given `value` as properties
in given | |
| writeValue | back to summary |
|---|---|
| public void writeValue(Map<?, ?> target, Object value, JavaPropsSchema schema) throws IOException Convenience method that "writes" given `value` as properties
in given | |
| writeValueAsMap | back to summary |
|---|---|
| public Map Convenience method that serializes given value but so that results are
stored in a newly constructed | |
| writeValueAsMap | back to summary |
|---|---|
| public Map Convenience method that serializes given value but so that results are
stored in given | |
| writeValueAsProperties | back to summary |
|---|---|
| public Properties writeValueAsProperties(Object value) throws IOException Convenience method that serializes given value but so that results are
stored in a newly constructed | |
| writeValueAsProperties | back to summary |
|---|---|
| public Properties writeValueAsProperties(Object value, JavaPropsSchema schema) throws IOException Convenience method that serializes given value but so that results are
stored in given | |
ObjectMapper, used with
Java Properties backend.
| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected MapperBuilderState | |
| public JavaPropsMapper | build()
Implements abstract tools. Method to call to create actual mapper instance. |
| Builder | back to summary |
|---|---|
| public Builder(JavaPropsFactory f) | |
| Builder | back to summary |
|---|---|
| public Builder(JavaPropsMapper. | |
| _saveState | back to summary |
|---|---|
| protected MapperBuilderState _saveState() Implements abstract tools.
| |
| build | back to summary |
|---|---|
| public JavaPropsMapper build() Implements abstract tools. Doc from tools. Method to call to create actual mapper instance.
Implementation detail: usually construction occurs by passing
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | readResolve()
Implements abstract tools. Method required to support JDK deserialization; made `abstract` here to ensure sub-classes must implement it. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| StateImpl | back to summary |
|---|---|
| public StateImpl(JavaPropsMapper. | |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() Implements abstract tools. Doc from tools. Method required to support JDK deserialization; made `abstract` here to ensure sub-classes must implement it.
| |