Skip to content
Harald Pehl edited this page Oct 29, 2012 · 2 revisions

How to get started

Modules

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.

Prerequisites

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>

Usage

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" />
Clone this wiki locally