Properties GWT

Simple properties file reader for GWT

Лицензия

Лицензия

Категории

Категории

GWT (Google Web Toolkit) Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

com.github.fworks
Идентификатор

Идентификатор

propertiesgwt
Последняя версия

Последняя версия

0.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

Properties GWT
Simple properties file reader for GWT
Ссылка на сайт

Ссылка на сайт

https://github.com/fworks/propertiesgwt
Система контроля версий

Система контроля версий

http://github.com/fworks/propertiesgwt

Скачать propertiesgwt

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
com.google.elemental2 : elemental2-dom jar 1.0.0-RC1

provided (2)

Идентификатор библиотеки Тип Версия
com.google.gwt : gwt-user jar
com.google.gwt : gwt-dev jar

runtime (1)

Идентификатор библиотеки Тип Версия
com.google.gwt : gwt-servlet jar

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
0.0.1