forked from hpehl/piriti
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Harald Pehl edited this page Oct 29, 2012
·
2 revisions
Actually Piriti consists of these artifacts:
- piriti-user: Contains the annotations, classes and interfaces to map JSON and XML to POJOs.
- piriti-dev: Contains the deferred binding stuff for code generation.
- piriti-restlet: An extension for the Restlet GWT edition. Contains representations which use the readers from Piriti.
To use Piriti make sure you have the following dependencies on your classpath:
For maven users add the following dependencies to your pom (Piriti is in Maven Central):
<dependency>
<groupId>name.pehl</groupId>
<artifactId>piriti-user</artifactId>
<version>0.8</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>name.pehl</groupId>
<artifactId>piriti-dev</artifactId>
<version>0.8</version>
<scope>provided</scope>
</dependency>
<!-- For Restlet support -->
<dependency>
<groupId>name.pehl</groupId>
<artifactId>piriti-restlet</artifactId>
<version>0.8</version>
<scope>provided</scope>
</dependency>
To actually use Piriti make sure that you inherit one or all of the following modules:
<inherits name="name.pehl.piriti.json.JSON" />
<inherits name="name.pehl.piriti.xml.XML" />