Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
Arin Sarkissian committed Jul 13, 2010
1 parent 8c09d43 commit efd72ad
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions README.mdown
Expand Up @@ -53,6 +53,8 @@ This tells the app that when a request comes in for `/example/FOO` the `FOO` met

## Sample Handler

Here's a condensed version of the code in the `ExampleHandler`

package com.example.you;

import com.phatduckk.aljeers.handler.BaseHandler;
Expand Down Expand Up @@ -114,3 +116,16 @@ This tells the app that when a request comes in for `/example/FOO` the `FOO` met
return user;
}
}

Once you've written the code you need to update your config file (ex: path/to/your/handlers.conf) and add:

/my_prefix = com.example.you.YourHandler

Now compile your code

mvn compile
mvn package

Run the app

java -Dconf.handlers=path/to/your/handlers.conf -jar target/aljeers-1.0-SNAPSHOT-jar-with-dependencies.jar
4 changes: 2 additions & 2 deletions pom.xml
Expand Up @@ -93,7 +93,7 @@
<value>${basedir}/example/example.conf</value>
</systemProperty>
</systemProperties>
<mainClass>com.phatduckk.aljeers.aljeers</mainClass>
<mainClass>com.phatduckk.aljeers.Aljeers</mainClass>
</configuration>
</plugin>

Expand Down Expand Up @@ -129,7 +129,7 @@
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>com.phatduckk.aljeers.aljeers</mainClass>
<mainClass>com.phatduckk.aljeers.Aljeers</mainClass>
</manifest>
</archive>
</configuration>
Expand Down

0 comments on commit efd72ad

Please sign in to comment.