---
title: Plugins
---
# VRaptor's Plugins
Plugins are extensions that adds some feature to VRaptor core. It's useful for some situations like access a database under JPA or Hibernate, to send e-mails on more.
##VRaptor JPA
VRaptor plugin allow your app to inject `EntityManager` and `EntityManagerFactory`. And more: the plugin implements the Open EntityManager In View filter, that create a transaction when request starts and commits the transaction in the end. If an exception occurs, the plugin rollback the transaction for you.
If you want to use, you need only copy the jars for your app. Or if your project uses Maven, you need only to declare the plugin artifact as you can see below:
~~~
#!xml
br.com.caelum.vraptor
vraptor-jpa
4.0.0-RC2
~~~
It's very important that your `persistence unit` is named `default`, and the `persistence.xml` located at `src/main/resources/META-INF/` directory.
The plugin doesn't delivery any provider. So you need to declare your prefered provider, like Hibernate.
~~~
#!xml
org.hibernate
hibernate-entitymanager
4.3.0.Final
~~~
Plugin page at Gihub: https://github.com/caelum/vraptor-jpa
##VRaptor Hibernate
If you like to use Hibernate 4 instead of JPA you need to use `vraptor-hibernate` plugin. This plugin have a similar behaviour that `vraptor-jpa`, allowing you to inject `Session` e `SessionFactory`. The plugin also implements the Open Session In View pattern.
If you want to use, you need only copy the jars for your app. Or if your project uses Maven, you need only to declare the plugin artifact as you can see below:
~~~
#!xml
br.com.caelum.vraptor
vraptor-hibernate
4.0.0-RC2
~~~
Plugin page at Gihub: https://github.com/caelum/vraptor-hibernate
##Simple mail
Allow you to send e-mail in an easy way.
~~~
#!xml
br.com.caelum.vraptor
vraptor-simplemail
4.0.0-RC2
~~~
Plugin page at Gihub: https://github.com/caelum/vraptor-simplemail
##VRaptor Shiro
O VRaptor Apache Shiro Plugin provê suporte a autenticação, autorização, criptografia e gerenciamento de sessão, via Apache Shiro, que é um framework leve, porém, poderoso, sendo ideal tanto para pequenos projetos como para projetos corporativos.
~~~
#!xml
br.com.caelum.vraptor
vraptor-shiro
4.0.0-RC2
~~~
Plugin page at Gihub: https://github.com/dipold/vraptor-shiro
## Joda-time
Joda-time is a pretty API to work with date and time. To use joda-time you need to use the plugin `vraptor-jodatime`.
~~~
#!xml
br.com.caelum.vraptor
vraptor-jodatime
4.0.0-RC2
~~~
Plugin page at Gihub: https://github.com/caelum/vraptor-time-converters
## New Java Date and Time API
If you are using Java 8, you can use the new API under the package `java.time`. You only need to use the plugin `vraptor-javatime`.
~~~
#!xml
br.com.caelum.vraptor
vraptor-javatime
4.0.0-RC2
~~~
Plugin page at Gihub: https://github.com/caelum/vraptor-time-converters
##VRaptor Error-Control
Allows you to real time control error messages sending them by email.
~~~
#!xml
br.com.caelum.vraptor
vraptor-error-control
4.0.0-RC2
~~~
Plugin page at Gihub: https://github.com/caelum/vraptor-error-control
##VRaptor Brutauth
Easy way to verify permission to access(authorization) a specific controller action.
~~~
#!xml
br.com.caelum.vraptor
vraptor-brutauth
4.0.0-RC2
~~~
Plugin page at Gihub: https://github.com/leonardowolter/vraptor-brutauth
##VRaptor QuartzJob
A simple Quartz scheduler
~~~
#!xml
br.com.caelum.vraptor
vraptor-quartzjob
4.0.0-RC2
~~~
Plugin page at Gihub: http://github.com/caelum/vraptor-quartzjob
##VRaptor Freemarker
Help you to render freemarker templates.
~~~
#!xml
br.com.caelum.vraptor
vraptor-freemarker
4.0.0-RC2
~~~
Plugin page at Gihub: http://github.com/caelum/vraptor-freemarker
##VRaptor Dash
A dashboard with several tools for your vraptor project.
~~~
#!xml
br.com.caelum.vraptor
vraptor-dash
4.0.0-RC2
~~~
Plugin page at Gihub: http://github.com/caelum/vraptor-dash
##VRaptor Authz
An alternative for access control (authorization) of your controller methods.
~~~
#!xml
br.com.caelum.vraptor
vraptor-authz
4.0.0-RC2
~~~
Plugin page at Gihub: https://github.com/Turini/vraptor-authz
##VRaptor contrib
https://github.com/caelum/vraptor-contrib
You can found some plugins made by our users.