Commit 0633a0ce5c206b83a7a4eb5b4c7e306ede2d69ba
1 parent
b0579946
Exists in
master
Inclusão do primeiro projeto de exemple para o usuário
Showing
12 changed files
with
591 additions
and
0 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,74 @@ |
| 1 | +<!-- | |
| 2 | + Demoiselle Framework | |
| 3 | + Copyright (C) 2010 SERPRO | |
| 4 | + ============================================================================ | |
| 5 | + This file is part of Demoiselle Framework. | |
| 6 | + | |
| 7 | + Demoiselle Framework is free software; you can redistribute it and/or | |
| 8 | + modify it under the terms of the GNU Lesser General Public License version 3 | |
| 9 | + as published by the Free Software Foundation. | |
| 10 | + | |
| 11 | + This program is distributed in the hope that it will be useful, | |
| 12 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | + GNU General Public License for more details. | |
| 15 | + | |
| 16 | + You should have received a copy of the GNU Lesser General Public License version 3 | |
| 17 | + along with this program; if not, see <http://www.gnu.org/licenses /> | |
| 18 | + or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
| 19 | + Fifth Floor, Boston, MA 02110-1301, USA. | |
| 20 | + ============================================================================ | |
| 21 | + Este arquivo é parte do Framework Demoiselle. | |
| 22 | + | |
| 23 | + O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
| 24 | + modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
| 25 | + do Software Livre (FSF). | |
| 26 | + | |
| 27 | + Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
| 28 | + GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
| 29 | + APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
| 30 | + para maiores detalhes. | |
| 31 | + | |
| 32 | + Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
| 33 | + "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses /> | |
| 34 | + ou escreva para a Fundação do Software Livre (FSF) Inc., | |
| 35 | + 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
| 36 | +--> | |
| 37 | +<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | |
| 38 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
| 39 | + | |
| 40 | + <modelVersion>4.0.0</modelVersion> | |
| 41 | + | |
| 42 | + <artifactId>demoiselle-framework-initializer-example</artifactId> | |
| 43 | + <packaging>jar</packaging> | |
| 44 | + | |
| 45 | + <name></name> | |
| 46 | + <description></description> | |
| 47 | + <url></url> | |
| 48 | + | |
| 49 | + <parent> | |
| 50 | + <groupId>br.gov.frameworkdemoiselle</groupId> | |
| 51 | + <artifactId>demoiselle-minimal-parent</artifactId> | |
| 52 | + <version>2.3.0-RC1-SNAPSHOT</version> | |
| 53 | + <relativePath>../../parent/minimal/pom.xml</relativePath> | |
| 54 | + </parent> | |
| 55 | + | |
| 56 | + <dependencies> | |
| 57 | + <dependency> | |
| 58 | + <groupId>org.slf4j</groupId> | |
| 59 | + <artifactId>slf4j-log4j12</artifactId> | |
| 60 | + <scope>test</scope> | |
| 61 | + </dependency> | |
| 62 | + </dependencies> | |
| 63 | + | |
| 64 | + <repositories> | |
| 65 | + <repository> | |
| 66 | + <id>demoiselle.sourceforge.net-release</id> | |
| 67 | + <url>http://demoiselle.sourceforge.net/repository/release</url> | |
| 68 | + </repository> | |
| 69 | + </repositories> | |
| 70 | + | |
| 71 | + <properties> | |
| 72 | + <demoiselle.junit.version>2.3.0-RC1-SNAPSHOT</demoiselle.junit.version> | |
| 73 | + </properties> | |
| 74 | +</project> | ... | ... |
| ... | ... | @@ -0,0 +1,86 @@ |
| 1 | +/* | |
| 2 | + * Demoiselle Framework | |
| 3 | + * Copyright (C) 2010 SERPRO | |
| 4 | + * ---------------------------------------------------------------------------- | |
| 5 | + * This file is part of Demoiselle Framework. | |
| 6 | + * | |
| 7 | + * Demoiselle Framework is free software; you can redistribute it and/or | |
| 8 | + * modify it under the terms of the GNU Lesser General Public License version 3 | |
| 9 | + * as published by the Free Software Foundation. | |
| 10 | + * | |
| 11 | + * This program is distributed in the hope that it will be useful, | |
| 12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | + * GNU General Public License for more details. | |
| 15 | + * | |
| 16 | + * You should have received a copy of the GNU Lesser General Public License version 3 | |
| 17 | + * along with this program; if not, see <http://www.gnu.org/licenses/> | |
| 18 | + * or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
| 19 | + * Fifth Floor, Boston, MA 02110-1301, USA. | |
| 20 | + * ---------------------------------------------------------------------------- | |
| 21 | + * Este arquivo é parte do Framework Demoiselle. | |
| 22 | + * | |
| 23 | + * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
| 24 | + * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
| 25 | + * do Software Livre (FSF). | |
| 26 | + * | |
| 27 | + * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
| 28 | + * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
| 29 | + * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
| 30 | + * para maiores detalhes. | |
| 31 | + * | |
| 32 | + * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
| 33 | + * "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/> | |
| 34 | + * ou escreva para a Fundação do Software Livre (FSF) Inc., | |
| 35 | + * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
| 36 | + */ | |
| 37 | +package example; | |
| 38 | + | |
| 39 | +import static br.gov.frameworkdemoiselle.annotation.Priority.MAX_PRIORITY; | |
| 40 | +import static br.gov.frameworkdemoiselle.annotation.Priority.MIN_PRIORITY; | |
| 41 | + | |
| 42 | +import java.util.ArrayList; | |
| 43 | +import java.util.List; | |
| 44 | + | |
| 45 | +import javax.enterprise.context.ApplicationScoped; | |
| 46 | + | |
| 47 | +import br.gov.frameworkdemoiselle.annotation.Priority; | |
| 48 | +import br.gov.frameworkdemoiselle.lifecycle.Startup; | |
| 49 | +import br.gov.frameworkdemoiselle.lifecycle.Shutdown; | |
| 50 | + | |
| 51 | +@ApplicationScoped | |
| 52 | +public class Hello { | |
| 53 | + | |
| 54 | + private List<String> list = new ArrayList<String>(); | |
| 55 | + | |
| 56 | + public List<String> getList() { | |
| 57 | + return list; | |
| 58 | + } | |
| 59 | + | |
| 60 | + public void say() { | |
| 61 | + list.add("Hello World"); | |
| 62 | + } | |
| 63 | + | |
| 64 | + @Startup | |
| 65 | + public void load() { | |
| 66 | + list.add("Startup: Priority Not Defined"); | |
| 67 | + } | |
| 68 | + | |
| 69 | + @Startup | |
| 70 | + @Priority(MIN_PRIORITY) | |
| 71 | + public void loadWithMinPriority() { | |
| 72 | + list.add("Startup: Min Priority"); | |
| 73 | + } | |
| 74 | + | |
| 75 | + @Shutdown | |
| 76 | + @Priority(1) | |
| 77 | + public void unload() { | |
| 78 | + list.add("Shutdown: Priority 1"); | |
| 79 | + } | |
| 80 | + | |
| 81 | + @Shutdown | |
| 82 | + @Priority(MAX_PRIORITY) | |
| 83 | + public void unloadWithMaxPriority() { | |
| 84 | + list.add("Shutdown: Max Priority"); | |
| 85 | + } | |
| 86 | +} | ... | ... |
example/initializer/src/main/resources/META-INF/beans.xml
0 → 100755
| ... | ... | @@ -0,0 +1,40 @@ |
| 1 | +<!-- | |
| 2 | + Demoiselle Framework | |
| 3 | + Copyright (C) 2010 SERPRO | |
| 4 | + ============================================================================ | |
| 5 | + This file is part of Demoiselle Framework. | |
| 6 | + | |
| 7 | + Demoiselle Framework is free software; you can redistribute it and/or | |
| 8 | + modify it under the terms of the GNU Lesser General Public License version 3 | |
| 9 | + as published by the Free Software Foundation. | |
| 10 | + | |
| 11 | + This program is distributed in the hope that it will be useful, | |
| 12 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | + GNU General Public License for more details. | |
| 15 | + | |
| 16 | + You should have received a copy of the GNU Lesser General Public License version 3 | |
| 17 | + along with this program; if not, see <http://www.gnu.org/licenses /> | |
| 18 | + or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
| 19 | + Fifth Floor, Boston, MA 02110-1301, USA. | |
| 20 | + ============================================================================ | |
| 21 | + Este arquivo é parte do Framework Demoiselle. | |
| 22 | + | |
| 23 | + O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
| 24 | + modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
| 25 | + do Software Livre (FSF). | |
| 26 | + | |
| 27 | + Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
| 28 | + GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
| 29 | + APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
| 30 | + para maiores detalhes. | |
| 31 | + | |
| 32 | + Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
| 33 | + "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses /> | |
| 34 | + ou escreva para a Fundação do Software Livre (FSF) Inc., | |
| 35 | + 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
| 36 | +--> | |
| 37 | +<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| 38 | + xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> | |
| 39 | + | |
| 40 | +</beans> | ... | ... |
example/initializer/src/main/resources/demoiselle.properties
0 → 100755
| ... | ... | @@ -0,0 +1,34 @@ |
| 1 | +# Demoiselle Framework | |
| 2 | +# Copyright (C) 2010 SERPRO | |
| 3 | +# ---------------------------------------------------------------------------- | |
| 4 | +# This file is part of Demoiselle Framework. | |
| 5 | +# | |
| 6 | +# Demoiselle Framework is free software; you can redistribute it and/or | |
| 7 | +# modify it under the terms of the GNU Lesser General Public License version 3 | |
| 8 | +# as published by the Free Software Foundation. | |
| 9 | +# | |
| 10 | +# This program is distributed in the hope that it will be useful, | |
| 11 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | +# GNU General Public License for more details. | |
| 14 | +# | |
| 15 | +# You should have received a copy of the GNU Lesser General Public License version 3 | |
| 16 | +# along with this program; if not, see <http://www.gnu.org/licenses/> | |
| 17 | +# or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
| 18 | +# Fifth Floor, Boston, MA 02110-1301, USA. | |
| 19 | +# ---------------------------------------------------------------------------- | |
| 20 | +# Este arquivo é parte do Framework Demoiselle. | |
| 21 | +# | |
| 22 | +# O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
| 23 | +# modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
| 24 | +# do Software Livre (FSF). | |
| 25 | +# | |
| 26 | +# Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
| 27 | +# GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
| 28 | +# APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
| 29 | +# para maiores detalhes. | |
| 30 | +# | |
| 31 | +# Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
| 32 | +# "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/> | |
| 33 | +# ou escreva para a Fundação do Software Livre (FSF) Inc., | |
| 34 | +# 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
| 0 | 35 | \ No newline at end of file | ... | ... |
example/initializer/src/test/java/example/InitializerAdvancedTest.java
0 → 100755
| ... | ... | @@ -0,0 +1,90 @@ |
| 1 | +/* | |
| 2 | + * Demoiselle Framework | |
| 3 | + * Copyright (C) 2010 SERPRO | |
| 4 | + * ---------------------------------------------------------------------------- | |
| 5 | + * This file is part of Demoiselle Framework. | |
| 6 | + * | |
| 7 | + * Demoiselle Framework is free software; you can redistribute it and/or | |
| 8 | + * modify it under the terms of the GNU Lesser General Public License version 3 | |
| 9 | + * as published by the Free Software Foundation. | |
| 10 | + * | |
| 11 | + * This program is distributed in the hope that it will be useful, | |
| 12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | + * GNU General Public License for more details. | |
| 15 | + * | |
| 16 | + * You should have received a copy of the GNU Lesser General Public License version 3 | |
| 17 | + * along with this program; if not, see <http://www.gnu.org/licenses/> | |
| 18 | + * or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
| 19 | + * Fifth Floor, Boston, MA 02110-1301, USA. | |
| 20 | + * ---------------------------------------------------------------------------- | |
| 21 | + * Este arquivo é parte do Framework Demoiselle. | |
| 22 | + * | |
| 23 | + * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
| 24 | + * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
| 25 | + * do Software Livre (FSF). | |
| 26 | + * | |
| 27 | + * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
| 28 | + * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
| 29 | + * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
| 30 | + * para maiores detalhes. | |
| 31 | + * | |
| 32 | + * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
| 33 | + * "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/> | |
| 34 | + * ou escreva para a Fundação do Software Livre (FSF) Inc., | |
| 35 | + * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
| 36 | + */ | |
| 37 | +package example; | |
| 38 | + | |
| 39 | +import static junit.framework.Assert.assertEquals; | |
| 40 | + | |
| 41 | +import java.util.ArrayList; | |
| 42 | +import java.util.List; | |
| 43 | + | |
| 44 | +import org.junit.AfterClass; | |
| 45 | +import org.junit.BeforeClass; | |
| 46 | +import org.junit.Test; | |
| 47 | +import org.junit.runner.RunWith; | |
| 48 | + | |
| 49 | +import br.gov.frameworkdemoiselle.junit.DemoiselleRunner; | |
| 50 | +import br.gov.frameworkdemoiselle.util.Beans; | |
| 51 | + | |
| 52 | +@RunWith(DemoiselleRunner.class) | |
| 53 | +public class InitializerAdvancedTest { | |
| 54 | + | |
| 55 | + private static Hello hello = Beans.getReference(Hello.class); | |
| 56 | + | |
| 57 | + private static List<String> expected = new ArrayList<String>(); | |
| 58 | + | |
| 59 | + @BeforeClass | |
| 60 | + public static void beforeClass() { | |
| 61 | + expected.add("Startup: Priority Not Defined"); | |
| 62 | + expected.add("Startup: Min Priority"); | |
| 63 | + | |
| 64 | + assertEquals(expected, hello.getList()); | |
| 65 | + } | |
| 66 | + | |
| 67 | + @Test | |
| 68 | + public void enqueueingAfterStartup() { | |
| 69 | + hello.say(); | |
| 70 | + expected.add("Hello World"); | |
| 71 | + | |
| 72 | + assertEquals(expected, hello.getList()); | |
| 73 | + } | |
| 74 | + | |
| 75 | + @Test | |
| 76 | + public void enqueueingAfterStartupAgain() { | |
| 77 | + hello.say(); | |
| 78 | + expected.add("Hello World"); | |
| 79 | + | |
| 80 | + assertEquals(expected, hello.getList()); | |
| 81 | + } | |
| 82 | + | |
| 83 | + @AfterClass | |
| 84 | + public static void afterClass() { | |
| 85 | + expected.add("Shutdown: Max Priority"); | |
| 86 | + expected.add("Shutdown: Priority 1"); | |
| 87 | + | |
| 88 | + assertEquals(expected, hello.getList()); | |
| 89 | + } | |
| 90 | +} | ... | ... |
example/initializer/src/test/java/example/InitializerSimpleTest.java
0 → 100755
| ... | ... | @@ -0,0 +1,69 @@ |
| 1 | +/* | |
| 2 | + * Demoiselle Framework | |
| 3 | + * Copyright (C) 2010 SERPRO | |
| 4 | + * ---------------------------------------------------------------------------- | |
| 5 | + * This file is part of Demoiselle Framework. | |
| 6 | + * | |
| 7 | + * Demoiselle Framework is free software; you can redistribute it and/or | |
| 8 | + * modify it under the terms of the GNU Lesser General Public License version 3 | |
| 9 | + * as published by the Free Software Foundation. | |
| 10 | + * | |
| 11 | + * This program is distributed in the hope that it will be useful, | |
| 12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | + * GNU General Public License for more details. | |
| 15 | + * | |
| 16 | + * You should have received a copy of the GNU Lesser General Public License version 3 | |
| 17 | + * along with this program; if not, see <http://www.gnu.org/licenses/> | |
| 18 | + * or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
| 19 | + * Fifth Floor, Boston, MA 02110-1301, USA. | |
| 20 | + * ---------------------------------------------------------------------------- | |
| 21 | + * Este arquivo é parte do Framework Demoiselle. | |
| 22 | + * | |
| 23 | + * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
| 24 | + * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
| 25 | + * do Software Livre (FSF). | |
| 26 | + * | |
| 27 | + * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
| 28 | + * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
| 29 | + * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
| 30 | + * para maiores detalhes. | |
| 31 | + * | |
| 32 | + * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
| 33 | + * "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/> | |
| 34 | + * ou escreva para a Fundação do Software Livre (FSF) Inc., | |
| 35 | + * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
| 36 | + */ | |
| 37 | +package example; | |
| 38 | + | |
| 39 | +import static junit.framework.Assert.assertEquals; | |
| 40 | + | |
| 41 | +import org.junit.AfterClass; | |
| 42 | +import org.junit.BeforeClass; | |
| 43 | +import org.junit.Test; | |
| 44 | +import org.junit.runner.RunWith; | |
| 45 | + | |
| 46 | +import br.gov.frameworkdemoiselle.junit.DemoiselleRunner; | |
| 47 | +import br.gov.frameworkdemoiselle.util.Beans; | |
| 48 | + | |
| 49 | +@RunWith(DemoiselleRunner.class) | |
| 50 | +public class InitializerSimpleTest { | |
| 51 | + | |
| 52 | + private static Hello hello = Beans.getReference(Hello.class); | |
| 53 | + | |
| 54 | + @BeforeClass | |
| 55 | + public static void beforeClass() { | |
| 56 | + assertEquals(2, hello.getList().size()); | |
| 57 | + } | |
| 58 | + | |
| 59 | + @Test | |
| 60 | + public void enqueueingAfterStartup() { | |
| 61 | + hello.say(); | |
| 62 | + assertEquals(3, hello.getList().size()); | |
| 63 | + } | |
| 64 | + | |
| 65 | + @AfterClass | |
| 66 | + public static void afterClass() { | |
| 67 | + assertEquals(5, hello.getList().size()); | |
| 68 | + } | |
| 69 | +} | ... | ... |
example/initializer/src/test/resources/META-INF/beans.xml
0 → 100755
| ... | ... | @@ -0,0 +1,47 @@ |
| 1 | +<!-- | |
| 2 | + Demoiselle Framework | |
| 3 | + Copyright (C) 2010 SERPRO | |
| 4 | + ============================================================================ | |
| 5 | + This file is part of Demoiselle Framework. | |
| 6 | + | |
| 7 | + Demoiselle Framework is free software; you can redistribute it and/or | |
| 8 | + modify it under the terms of the GNU Lesser General Public License version 3 | |
| 9 | + as published by the Free Software Foundation. | |
| 10 | + | |
| 11 | + This program is distributed in the hope that it will be useful, | |
| 12 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | + GNU General Public License for more details. | |
| 15 | + | |
| 16 | + You should have received a copy of the GNU Lesser General Public License version 3 | |
| 17 | + along with this program; if not, see <http://www.gnu.org/licenses /> | |
| 18 | + or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
| 19 | + Fifth Floor, Boston, MA 02110-1301, USA. | |
| 20 | + ============================================================================ | |
| 21 | + Este arquivo é parte do Framework Demoiselle. | |
| 22 | + | |
| 23 | + O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
| 24 | + modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
| 25 | + do Software Livre (FSF). | |
| 26 | + | |
| 27 | + Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
| 28 | + GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
| 29 | + APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
| 30 | + para maiores detalhes. | |
| 31 | + | |
| 32 | + Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
| 33 | + "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses /> | |
| 34 | + ou escreva para a Fundação do Software Livre (FSF) Inc., | |
| 35 | + 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
| 36 | +--> | |
| 37 | +<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> | |
| 38 | + | |
| 39 | + <interceptors> | |
| 40 | + <class>br.gov.frameworkdemoiselle.internal.interceptor.ExceptionHandlerInterceptor</class> | |
| 41 | + <class>br.gov.frameworkdemoiselle.internal.interceptor.RequiredPermissionInterceptor</class> | |
| 42 | + <class>br.gov.frameworkdemoiselle.internal.interceptor.RequiredRoleInterceptor</class> | |
| 43 | + <class>br.gov.frameworkdemoiselle.internal.interceptor.TransactionalInterceptor</class> | |
| 44 | + <class>br.gov.frameworkdemoiselle.internal.interceptor.ConfigurationInterceptor</class> | |
| 45 | + </interceptors> | |
| 46 | + | |
| 47 | +</beans> | |
| 0 | 48 | \ No newline at end of file | ... | ... |
| ... | ... | @@ -0,0 +1,39 @@ |
| 1 | +# Demoiselle Framework | |
| 2 | +# Copyright (C) 2010 SERPRO | |
| 3 | +# ---------------------------------------------------------------------------- | |
| 4 | +# This file is part of Demoiselle Framework. | |
| 5 | +# | |
| 6 | +# Demoiselle Framework is free software; you can redistribute it and/or | |
| 7 | +# modify it under the terms of the GNU Lesser General Public License version 3 | |
| 8 | +# as published by the Free Software Foundation. | |
| 9 | +# | |
| 10 | +# This program is distributed in the hope that it will be useful, | |
| 11 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | +# GNU General Public License for more details. | |
| 14 | +# | |
| 15 | +# You should have received a copy of the GNU Lesser General Public License version 3 | |
| 16 | +# along with this program; if not, see <http://www.gnu.org/licenses/> | |
| 17 | +# or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
| 18 | +# Fifth Floor, Boston, MA 02110-1301, USA. | |
| 19 | +# ---------------------------------------------------------------------------- | |
| 20 | +# Este arquivo é parte do Framework Demoiselle. | |
| 21 | +# | |
| 22 | +# O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
| 23 | +# modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
| 24 | +# do Software Livre (FSF). | |
| 25 | +# | |
| 26 | +# Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
| 27 | +# GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
| 28 | +# APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
| 29 | +# para maiores detalhes. | |
| 30 | +# | |
| 31 | +# Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
| 32 | +# "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/> | |
| 33 | +# ou escreva para a Fundação do Software Livre (FSF) Inc., | |
| 34 | +# 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
| 35 | + | |
| 36 | +log4j.rootLogger=INFO, A1 | |
| 37 | +log4j.appender.A1=org.apache.log4j.ConsoleAppender | |
| 38 | +log4j.appender.A1.layout=org.apache.log4j.PatternLayout | |
| 39 | +log4j.appender.A1.layout.ConversionPattern=%-4r %-5p %c - %m%n | ... | ... |
| ... | ... | @@ -0,0 +1,101 @@ |
| 1 | +<!-- | |
| 2 | + Demoiselle Framework | |
| 3 | + Copyright (C) 2010 SERPRO | |
| 4 | + ============================================================================ | |
| 5 | + This file is part of Demoiselle Framework. | |
| 6 | + | |
| 7 | + Demoiselle Framework is free software; you can redistribute it and/or | |
| 8 | + modify it under the terms of the GNU Lesser General Public License version 3 | |
| 9 | + as published by the Free Software Foundation. | |
| 10 | + | |
| 11 | + This program is distributed in the hope that it will be useful, | |
| 12 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | + GNU General Public License for more details. | |
| 15 | + | |
| 16 | + You should have received a copy of the GNU Lesser General Public License version 3 | |
| 17 | + along with this program; if not, see <http://www.gnu.org/licenses /> | |
| 18 | + or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
| 19 | + Fifth Floor, Boston, MA 02110-1301, USA. | |
| 20 | + ============================================================================ | |
| 21 | + Este arquivo é parte do Framework Demoiselle. | |
| 22 | + | |
| 23 | + O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
| 24 | + modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
| 25 | + do Software Livre (FSF). | |
| 26 | + | |
| 27 | + Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
| 28 | + GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
| 29 | + APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
| 30 | + para maiores detalhes. | |
| 31 | + | |
| 32 | + Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
| 33 | + "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses /> | |
| 34 | + ou escreva para a Fundação do Software Livre (FSF) Inc., | |
| 35 | + 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
| 36 | +--> | |
| 37 | +<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | |
| 38 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
| 39 | + | |
| 40 | + <modelVersion>4.0.0</modelVersion> | |
| 41 | + | |
| 42 | + <groupId>br.gov.frameworkdemoiselle</groupId> | |
| 43 | + <artifactId>demoiselle-framework-example-build</artifactId> | |
| 44 | + <version>2.3.0-RC1-SNAPSHOT</version> | |
| 45 | + <packaging>pom</packaging> | |
| 46 | + | |
| 47 | + <name>Examples Build Aggregator</name> | |
| 48 | + <description>Demoiselle Examples Build Aggregator</description> | |
| 49 | + | |
| 50 | + <modules> | |
| 51 | + <module>initializer</module> | |
| 52 | + <!-- | |
| 53 | + <module>configuration</module> | |
| 54 | + <module>exception-handler</module> | |
| 55 | + <module>logger</module> | |
| 56 | + <module>message</module> | |
| 57 | + <module>pagination</module> | |
| 58 | + <module>parameter</module> | |
| 59 | + <module>resource-bundle</module> | |
| 60 | + <module>security</module> | |
| 61 | + <module>jpa-transaction</module> | |
| 62 | + <module>jta-transaction</module> | |
| 63 | + <module>twophasecommit</module> | |
| 64 | + --> | |
| 65 | + </modules> | |
| 66 | + | |
| 67 | + <build> | |
| 68 | + <plugins> | |
| 69 | + <plugin> | |
| 70 | + <groupId>org.codehaus.mojo</groupId> | |
| 71 | + <artifactId>wagon-maven-plugin</artifactId> | |
| 72 | + <configuration> | |
| 73 | + <url>.</url> | |
| 74 | + <skip>true</skip> | |
| 75 | + </configuration> | |
| 76 | + </plugin> | |
| 77 | + <plugin> | |
| 78 | + <groupId>org.apache.maven.plugins</groupId> | |
| 79 | + <artifactId>maven-deploy-plugin</artifactId> | |
| 80 | + <configuration> | |
| 81 | + <skip>true</skip> | |
| 82 | + </configuration> | |
| 83 | + </plugin> | |
| 84 | + </plugins> | |
| 85 | + </build> | |
| 86 | + | |
| 87 | + <distributionManagement> | |
| 88 | + <repository> | |
| 89 | + <id /> | |
| 90 | + <url /> | |
| 91 | + </repository> | |
| 92 | + <snapshotRepository> | |
| 93 | + <id /> | |
| 94 | + <url /> | |
| 95 | + </snapshotRepository> | |
| 96 | + <site> | |
| 97 | + <id /> | |
| 98 | + <url>file://${project.build.directory}/tmp</url> | |
| 99 | + </site> | |
| 100 | + </distributionManagement> | |
| 101 | +</project> | ... | ... |