delight-async-properties

Async Properties is a Java library to store and retrieve properties in an asynchronous manner.

License

License

GPL
GroupId

GroupId

org.javadelight
ArtifactId

ArtifactId

delight-async-properties
Last Version

Last Version

0.0.5
Release Date

Release Date

Type

Type

bundle
Description

Description

delight-async-properties
Async Properties is a Java library to store and retrieve properties in an asynchronous manner.
Project URL

Project URL

https://github.com/javadelight/delight-async-properties
Source Code Management

Source Code Management

https://github.com/javadelight/delight-async-properties

Download delight-async-properties

Dependencies

compile (6)

Group / Artifact Type Version
org.javadelight : delight-factories jar 0.0.3
org.javadelight : delight-json jar 0.0.5
org.javadelight : delight-concurrency jar 0.0.6
org.javadelight : delight-scheduler jar 0.0.3
org.javadelight : delight-promise jar 0.0.3
org.eclipse.xtend : org.eclipse.xtend.lib.gwt jar 2.13.0

provided (1)

Group / Artifact Type Version
com.google.gwt : gwt-user jar 2.8.2

test (1)

Group / Artifact Type Version
com.github.oehme.xtend : xtend-junit jar 0.0.1

Project Modules

There are no modules declared in this project.

Build Status

delight-async-properties

Async Properties is a Java library to store and retrieve properties in an asynchronous manner.

Usage

Storing Properties

Properties are set using the record(operation) method. All operations are performed asynchronously.

PropertyNode props = Properties.create(Properties.defaultFactory());

props.record(Properties.set("key", "value"));

props.stop().get();

Retrieving Properties

Properties can be retrieved using the retrieve(key) method. retrieve(key) returns a Promise which must be resolved using .get().

PropertyNode props = Properties.create(Properties.defaultFactory());

props.record(Properties.set("key", "value"));

System.out.println(props.retrieve("key").get());

props.stop().get();

Rendering All Properties

Renders all properties in a human-readable JSON representation.

PropertyNode props = Properties.create(Properties.defaultFactory());

props.record(Properties.set("key", "value"));

System.out.println(props.render().get());

props.stop().get();

Maven Dependency

<dependency>
    <groupId>de.mxro.async.properties</groupId>
	<artifactId>async-properties</artifactId>
	<version>[latest version]</version>
</dependency>

This artifact is available on Maven Central and BinTray.

Maven Central

Compatibility

This project is compatible with the following environments:

  • Java 1.6+
  • GWT 2.5.0+
  • Android (any)
  • OSGi (any)

Further Resources

Documentation Status

Versions

Version
0.0.5