Skip to content

Commit

Permalink
Merge pull request #871 from garcia-jj/ot-gh815-beansxml
Browse files Browse the repository at this point in the history
Adding documentation about beans.xml. Closes #815.
  • Loading branch information
garcia-jj committed Nov 10, 2014
2 parents 80da772 + f1048a4 commit ba8d016
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
13 changes: 13 additions & 0 deletions vraptor-site/content/en/docs/dependencies-and-prerequisites.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@
</listener>
~~~

And the `beans.xml` file located under your `WEB-INF` (which is optional in case of
Application Servers) with this content:

~~~
#!xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
version="1.1" bean-discovery-mode="all">
</beans>
~~~

Some dependencies may differ between applications running in an Application Server
or a Servlet Container. Dependencies from Java EE specification, such as CDI or
Bean Validation, are not required if you are using an Application Server.
Expand Down
4 changes: 4 additions & 0 deletions vraptor-site/content/en/docs/one-minute-guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,7 @@
While studying VRaptor, should you have any doubts please refer to <a href="http://questions.vraptor.org/">questions.vraptor.org</a>, or visit our discussion list at <a href="http://groups.google.com/group/caelum-vraptor-en">discussion list</a>.

You can see all this and many other features in a practical way in our sample project, the <a href="https://github.com/caelum/vraptor4/tree/master/vraptor-musicjungle"> vraptor-music-jungle </a>

##Next steps

You can also read about <a href="/en/docs/dependencies-and-prerequisites/">dependencies and prerequisites</a>.
12 changes: 12 additions & 0 deletions vraptor-site/content/pt/docs/dependencias-e-pre-requisitos.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@
</listener>
~~~

E o arquivo `beans.xml`, que é opcional se você estiver usando um Application Server, que deve estar dentro do `WEB-INF` de sua aplicação:

~~~
#!xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
version="1.1" bean-discovery-mode="all">
</beans>
~~~


Algumas dependências podem variar se você usa um Application Server ou um Servlet Container. Pacotes da especificação, como o CDI ou Bean Validation, não são necessários quando você usa um Application Server.

Expand Down
4 changes: 4 additions & 0 deletions vraptor-site/content/pt/docs/guia-de-1-minuto.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,7 @@
Se durante a leitura da documentação você tiver dúvidas, procure ajuda no <a href="http://www.guj.com.br/tag/vraptor">GUJ</a> ou acesse nossa <a href="https://groups.google.com/forum/#!forum/caelum-vraptor">lista de discussão</a>.

Você pode também ver tudo isso e muitos outros recursos de forma prática em nosso projeto de exemplo, o <a href="https://github.com/caelum/vraptor4/tree/master/vraptor-musicjungle">vraptor-music-jungle</a>

##Próximas etapas

Você pode ler um pouco mais sobre as <a href="/pt/docs/dependencias-e-pre-requisitos/">dependências e pré requisitos</a>.

0 comments on commit ba8d016

Please sign in to comment.