Properties GWT

Simple properties file reader for GWT

License

License

Categories

Categories

GWT (Google Web Toolkit) User Interface Web Frameworks
GroupId

GroupId

com.github.fworks
ArtifactId

ArtifactId

propertiesgwt
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Properties GWT
Simple properties file reader for GWT
Project URL

Project URL

https://github.com/fworks/propertiesgwt
Source Code Management

Source Code Management

http://github.com/fworks/propertiesgwt

Download propertiesgwt

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.fworks/propertiesgwt/ -->
<dependency>
    <groupId>com.github.fworks</groupId>
    <artifactId>propertiesgwt</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.fworks/propertiesgwt/
implementation 'com.github.fworks:propertiesgwt:0.0.1'
// https://jarcasting.com/artifacts/com.github.fworks/propertiesgwt/
implementation ("com.github.fworks:propertiesgwt:0.0.1")
'com.github.fworks:propertiesgwt:jar:0.0.1'
<dependency org="com.github.fworks" name="propertiesgwt" rev="0.0.1">
  <artifact name="propertiesgwt" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.fworks', module='propertiesgwt', version='0.0.1')
)
libraryDependencies += "com.github.fworks" % "propertiesgwt" % "0.0.1"
[com.github.fworks/propertiesgwt "0.0.1"]

Dependencies

compile (1)

Group / Artifact Type Version
com.google.elemental2 : elemental2-dom jar 1.0.0-RC1

provided (2)

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

runtime (1)

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

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

propertiesgwt

Simple properties file reader for GWT

It provides a map with the content of a properties file to be used on the GWT client application.

maven

<dependency>
  <groupId>com.github.fworks</groupId>
  <artifactId>propertiesgwt</artifactId>
  <version>0.0.1</version>
</dependency>

How to use

1) Inherit the module

<!-- propertiesgwt -->
<inherits name="com.github.fworks.propertiesgwt.PropertiesGWT" />

2) Add the servlet config, you can pass a list of properties files separated by comma.

<!-- PropertiesGwt Servlet Config -->
<servlet>
	<servlet-name>propertiesGwtServlet</servlet-name>
	<servlet-class>com.github.fworks.propertiesgwt.server.PropertiesServlet</servlet-class>
	<init-param>
		<param-name>PROPERTIES_FILES</param-name>
		<param-value>application.properties</param-value>
	</init-param>
</servlet>

<servlet-mapping>
	<servlet-name>propertiesGwtServlet</servlet-name>
	<url-pattern>/propertiesGwt</url-pattern>
</servlet-mapping>

3) Just call the static methods

on your properties file:

property-name=blah

on the gwt code:

String value = PropertiesGwt.getValue("property-name");

For more info, see the example project:

propertiesgwt-example

Notes

It is simple as it sounds.

Versions

Version
0.0.1