[jboss-cvs] JBossAS SVN: r94636 - in projects/interceptors/trunk: jboss-interceptor and 6 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Oct 10 01:39:45 EDT 2009


Author: marius.bogoevici
Date: 2009-10-10 01:39:45 -0400 (Sat, 10 Oct 2009)
New Revision: 94636

Added:
   projects/interceptors/trunk/jboss-interceptor-api/
   projects/interceptors/trunk/jboss-interceptor-api/pom.xml
   projects/interceptors/trunk/jboss-interceptor-api/src/
   projects/interceptors/trunk/jboss-interceptor-api/src/main/
   projects/interceptors/trunk/jboss-interceptor-api/src/main/java/
   projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/
   projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/
   projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/AroundInvoke.java
   projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/AroundTimeout.java
   projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/ExcludeClassInterceptors.java
   projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/ExcludeDefaultInterceptors.java
   projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/Interceptor.java
   projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/InterceptorBinding.java
   projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/Interceptors.java
   projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/InvocationContext.java
   projects/interceptors/trunk/jboss-interceptor/
   projects/interceptors/trunk/pom.xml
Removed:
   projects/interceptors/trunk/interceptors-impl/
Modified:
   projects/interceptors/trunk/jboss-interceptor/pom.xml
Log:
Reorganised project as jboss-interceptor. Created jboss-interceptor-api

Copied: projects/interceptors/trunk/jboss-interceptor (from rev 94628, projects/interceptors/trunk/interceptors-impl)

Modified: projects/interceptors/trunk/jboss-interceptor/pom.xml
===================================================================
--- projects/interceptors/trunk/interceptors-impl/pom.xml	2009-10-09 22:26:57 UTC (rev 94628)
+++ projects/interceptors/trunk/jboss-interceptor/pom.xml	2009-10-10 05:39:45 UTC (rev 94636)
@@ -3,194 +3,23 @@
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>
 
+
   <parent>
-    <groupId>org.jboss</groupId>
-    <artifactId>jboss-parent</artifactId>
-    <version>4</version>
+    <groupId>org.jboss.interceptor</groupId>
+    <artifactId>jboss-interceptor-parent</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
   </parent>
 
-  <groupId>org.jboss.interceptors</groupId>
-  <artifactId>interceptors</artifactId>
-  <version>1.0.0-SNAPSHOT</version>
+  <artifactId>jboss-interceptor</artifactId>
 
-  <name>JBoss Interceptors</name>
-  <description>JBoss Interceptors</description>
-
-  <scm>
-    <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/interceptors/trunk/</connection>
-    <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/interceptors/trunk/</developerConnection>
-    <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/interceptors/trunk/</url>
-  </scm>
-
-  <properties>
-    <version.ejb3.api>3.1.0-Alpha1</version.ejb3.api>
-    <version.javassist>3.11.0.GA</version.javassist>
-    <version.junit>4.5</version.junit>
-  </properties>
-
-  <build>
-    <finalName>${artifactId}</finalName>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <version>2.0.2.SP1</version>
-        <configuration>
-          <source>1.5</source>
-          <target>1.5</target>
-          <showDeprecation>true</showDeprecation>
-          <showWarnings>true</showWarnings>
-          <optimize>true</optimize>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-release-plugin</artifactId>
-        <version>2.0-beta-9</version>
-        <configuration>
-          <generateReleasePoms>false</generateReleasePoms>
-          <tagBase>https://svn.jboss.org/repos/jbossas/projects/interceptors/tags</tagBase>
-        </configuration>
-      </plugin>
-    </plugins>
-    <pluginManagement>
-      <plugins>
-        <plugin>
-          <artifactId>maven-idea-plugin</artifactId>
-          <configuration>
-            <downloadSources>true</downloadSources>
-          </configuration>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-surefire-plugin</artifactId>
-          <version>2.4.3</version>
-          <configuration>
-            <redirectTestOutputToFile>true</redirectTestOutputToFile>
-            <!--testFailureIgnore>true</testFailureIgnore-->
-            <includes>
-              <include>org/jboss/test/**/*TestCase.java</include>
-            </includes>
-          </configuration>
-        </plugin>
-        <plugin>
-          <!-- Configure javadoc plugin with APIviz -->
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-javadoc-plugin</artifactId>
-          <configuration>
-            <doclet>net.gleamynode.apiviz.APIviz</doclet>
-            <docletArtifact>
-              <groupId>net.gleamynode.apiviz</groupId>
-              <artifactId>apiviz</artifactId>
-              <version>1.1.0</version>
-            </docletArtifact>
-            <encoding>UTF-8</encoding>
-          </configuration>
-        </plugin>
-      </plugins>
-    </pluginManagement>
-  </build>
-
-  <repositories>
-    <repository>
-      <id>repository.jboss.org</id>
-      <name>JBoss Repository</name>
-      <layout>default</layout>
-      <url>http://repository.jboss.org/maven2/</url>
-      <snapshots>
-        <enabled>false</enabled>
-      </snapshots>
-    </repository>
-    <repository>
-      <id>snapshots.jboss.org</id>
-      <name>JBoss Snapshots Repository</name>
-      <layout>default</layout>
-      <url>http://snapshots.jboss.org/maven2/</url>
-      <snapshots>
-        <enabled>true</enabled>
-      </snapshots>
-      <releases>
-        <enabled>false</enabled>
-      </releases>
-    </repository>
-    <!-- APIviz repository -->
-    <repository>
-      <id>apiviz.release</id>
-      <name>APIviz releases</name>
-      <url>http://apiviz.googlecode.com/svn/site/repo/mvn/release</url>
-      <releases>
-        <enabled>true</enabled>
-      </releases>
-      <snapshots>
-        <enabled>false</enabled>
-      </snapshots>
-    </repository>
-  </repositories>
-
-  <reporting>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-project-info-reports-plugin</artifactId>
-        <reportSets>
-          <reportSet>
-            <reports>
-              <report>dependencies</report>
-              <report>issue-tracking</report>
-              <report>license</report>
-              <report>scm</report>
-            </reports>
-          </reportSet>
-        </reportSets>
-      </plugin>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>findbugs-maven-plugin</artifactId>
-        <version>2.0.1</version>
-        <configuration>
-          <findbugsXmlOutput>true</findbugsXmlOutput>
-          <!-- Optional directory to put findbugs xml report -->
-          <findbugsXmlOutputDirectory>target/site</findbugsXmlOutputDirectory>
-        </configuration>
-      </plugin>
-    </plugins>
-  </reporting>
-
-  <dependencyManagement>
-    <!-- The parent pom manages the inter-dependencies of the modules. -->
-    <dependencies>
-
-      <dependency>
-        <groupId>org.jboss.ejb3</groupId>
-        <artifactId>jboss-ejb3-api</artifactId>
-        <version>${version.ejb3.api}</version>
-        <scope>provided</scope>
-      </dependency>
-
-      <dependency>
-        <groupId>junit</groupId>
-        <artifactId>junit</artifactId>
-        <version>${version.junit}</version>
-        <scope>test</scope>
-      </dependency>
-
-      <dependency>
-        <groupId>javassist</groupId>
-        <artifactId>javassist</artifactId>
-        <version>${version.javassist}</version>
-      </dependency>
-
-    </dependencies>
-  </dependencyManagement>
-
   <dependencies>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
     </dependency>
     <dependency>
-      <groupId>org.jboss.ejb3</groupId>
-      <artifactId>jboss-ejb3-api</artifactId>
+      <groupId>org.jboss.interceptor</groupId>
+      <artifactId>jboss-interceptor-api</artifactId>
       <optional>true</optional>
     </dependency>
     <dependency>

Added: projects/interceptors/trunk/jboss-interceptor-api/pom.xml
===================================================================
--- projects/interceptors/trunk/jboss-interceptor-api/pom.xml	                        (rev 0)
+++ projects/interceptors/trunk/jboss-interceptor-api/pom.xml	2009-10-10 05:39:45 UTC (rev 94636)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <parent>
+    <artifactId>jboss-interceptor-parent</artifactId>
+    <groupId>org.jboss.interceptor</groupId>
+    <version>1.0.0-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.interceptor</groupId>
+  <artifactId>jboss-interceptor-api</artifactId>
+  <version>3.1.0-SNAPSHOT</version>
+</project>
\ No newline at end of file

Added: projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/AroundInvoke.java
===================================================================
--- projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/AroundInvoke.java	                        (rev 0)
+++ projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/AroundInvoke.java	2009-10-10 05:39:45 UTC (rev 94636)
@@ -0,0 +1,38 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package javax.interceptor;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+import static java.lang.annotation.ElementType.*;
+import static java.lang.annotation.RetentionPolicy.*;
+
+/**
+ * Defines an interceptor method. The method must have the signature:
+ * public Object <METHOD>(InvocationContext) throws Exception
+ *
+ * @author <a href="mailto:kabir.khan at jboss.org">Kabir Khan</a>
+ * @version $Revision: 44679 $
+ */
+ at Target({METHOD}) @Retention(RUNTIME)
+public @interface AroundInvoke {
+}

Added: projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/AroundTimeout.java
===================================================================
--- projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/AroundTimeout.java	                        (rev 0)
+++ projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/AroundTimeout.java	2009-10-10 05:39:45 UTC (rev 94636)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.interceptor;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Defines an interceptor for a timeout method. The method must have the signature:
+ * public Object <METHOD>(InvocationContext) throws Exception
+ *
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ * @since 3.1
+ */
+ at Target(value=METHOD)
+ at Retention(value=RUNTIME)
+public @interface AroundTimeout {
+
+}

Added: projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/ExcludeClassInterceptors.java
===================================================================
--- projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/ExcludeClassInterceptors.java	                        (rev 0)
+++ projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/ExcludeClassInterceptors.java	2009-10-10 05:39:45 UTC (rev 94636)
@@ -0,0 +1,23 @@
+/*
+ * JBoss, the OpenSource J2EE webOS
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+package javax.interceptor;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 44679 $
+ */
+ at Target({METHOD}) @Retention(RUNTIME)
+public @interface ExcludeClassInterceptors {
+
+}

Added: projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/ExcludeDefaultInterceptors.java
===================================================================
--- projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/ExcludeDefaultInterceptors.java	                        (rev 0)
+++ projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/ExcludeDefaultInterceptors.java	2009-10-10 05:39:45 UTC (rev 94636)
@@ -0,0 +1,24 @@
+/*
+ * JBoss, the OpenSource J2EE webOS
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+package javax.interceptor;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 57282 $
+ */
+ at Target({TYPE, METHOD}) @Retention(RUNTIME)
+public @interface ExcludeDefaultInterceptors {
+
+}

Added: projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/Interceptor.java
===================================================================
--- projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/Interceptor.java	                        (rev 0)
+++ projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/Interceptor.java	2009-10-10 05:39:45 UTC (rev 94636)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package javax.interceptor;
+
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+
+/**
+ * Specifies that a class is an interceptor.
+ *
+ * @author Gavin King
+ *
+ */
+ at Retention(RUNTIME)
+ at Target(TYPE)
+ at Documented
+public @interface Interceptor {}

Added: projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/InterceptorBinding.java
===================================================================
--- projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/InterceptorBinding.java	                        (rev 0)
+++ projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/InterceptorBinding.java	2009-10-10 05:39:45 UTC (rev 94636)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual
+ * contributors by the @authors tag. See the copyright.txt in the
+ * distribution for a full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package javax.interceptor;
+
+import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Specifies that an annotation type is an interceptor binding.
+ *
+ * @author Gavin King
+ * @author Pete Muir
+ */
+
+ at Target(ANNOTATION_TYPE)
+ at Retention(RUNTIME)
+ at Documented
+public @interface InterceptorBinding {}
+

Added: projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/Interceptors.java
===================================================================
--- projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/Interceptors.java	                        (rev 0)
+++ projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/Interceptors.java	2009-10-10 05:39:45 UTC (rev 94636)
@@ -0,0 +1,42 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package javax.interceptor;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+import static java.lang.annotation.ElementType.*;
+import static java.lang.annotation.RetentionPolicy.*;
+
+/**
+ * An interceptor class is denoted using the Interceptor annotation on the bean
+ * class with which it is associated. In the case of multiple interceptor
+ * classes, the Interceptors annotation is used.
+ *
+ * @author <a href="mailto:kabir.khan at jboss.org">Kabir Khan</a>
+ * @version $Revision: 44679 $
+ */
+ at Target({TYPE, METHOD})
+ at Retention(RUNTIME)
+public @interface Interceptors
+{
+   Class[] value();
+}

Added: projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/InvocationContext.java
===================================================================
--- projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/InvocationContext.java	                        (rev 0)
+++ projects/interceptors/trunk/jboss-interceptor-api/src/main/java/javax/interceptor/InvocationContext.java	2009-10-10 05:39:45 UTC (rev 94636)
@@ -0,0 +1,56 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package javax.interceptor;
+
+import java.lang.reflect.Method;
+
+/**
+ * The InvocationContext object provides the metadata that is required for
+ * AroundInvoke interceptor methods.
+ *
+ * @author <a href="mailto:kabir.khan at jboss.org">Kabir Khan</a>
+ * @version $Revision: 85923 $
+ */
+public interface InvocationContext
+{
+   public Object getTarget();
+
+   public Method getMethod();
+
+   public Object[] getParameters();
+
+   public void setParameters(Object[] params);
+
+   /**
+    * Returns the context data associated with this invocation or lifecycle callback. If there is no context data, an empty Map object will be returned.
+    */
+   public java.util.Map<String, Object> getContextData();
+
+   /**
+    * Returns the timer associated with an @AroundTimeout method.
+    *
+    * @since 3.1
+    */
+   Object getTimer();
+
+   public Object proceed() throws Exception;
+}
\ No newline at end of file

Added: projects/interceptors/trunk/pom.xml
===================================================================
--- projects/interceptors/trunk/pom.xml	                        (rev 0)
+++ projects/interceptors/trunk/pom.xml	2009-10-10 05:39:45 UTC (rev 94636)
@@ -0,0 +1,189 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <packaging>pom</packaging>
+
+  <parent>
+    <groupId>org.jboss</groupId>
+    <artifactId>jboss-parent</artifactId>
+    <version>4</version>
+  </parent>
+
+  <groupId>org.jboss.interceptor</groupId>
+  <artifactId>jboss-interceptor-parent</artifactId>
+  <version>1.0.0-SNAPSHOT</version>
+
+  <name>JBoss Interceptors</name>
+  <description>JBoss Interceptors</description>
+
+  <scm>
+    <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/interceptors/trunk/</connection>
+    <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/interceptors/trunk/</developerConnection>
+    <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/interceptors/trunk/</url>
+  </scm>
+
+  <properties>
+    <version.interceptor.api>3.1</version.interceptor.api>
+    <version.javassist>3.11.0.GA</version.javassist>
+    <version.junit>4.5</version.junit>
+  </properties>
+
+  <modules>
+    <module>jboss-interceptor</module>
+    <module>jboss-interceptor-api</module>
+  </modules>
+
+  <build>
+    <finalName>${artifactId}</finalName>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>2.0.2.SP1</version>
+        <configuration>
+          <source>1.5</source>
+          <target>1.5</target>
+          <showDeprecation>true</showDeprecation>
+          <showWarnings>true</showWarnings>
+          <optimize>true</optimize>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-release-plugin</artifactId>
+        <version>2.0-beta-9</version>
+        <configuration>
+          <generateReleasePoms>false</generateReleasePoms>
+          <tagBase>https://svn.jboss.org/repos/jbossas/projects/interceptors/tags</tagBase>
+        </configuration>
+      </plugin>
+    </plugins>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <artifactId>maven-idea-plugin</artifactId>
+          <configuration>
+            <downloadSources>true</downloadSources>
+          </configuration>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-surefire-plugin</artifactId>
+          <version>2.4.3</version>
+          <configuration>
+            <redirectTestOutputToFile>true</redirectTestOutputToFile>
+            <!--testFailureIgnore>true</testFailureIgnore-->
+            <includes>
+              <include>org/jboss/test/**/*TestCase.java</include>
+            </includes>
+          </configuration>
+        </plugin>
+        <plugin>
+          <!-- Configure javadoc plugin with APIviz -->
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-javadoc-plugin</artifactId>
+          <configuration>
+            <doclet>net.gleamynode.apiviz.APIviz</doclet>
+            <docletArtifact>
+              <groupId>net.gleamynode.apiviz</groupId>
+              <artifactId>apiviz</artifactId>
+              <version>1.1.0</version>
+            </docletArtifact>
+            <encoding>UTF-8</encoding>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+
+  <repositories>
+    <repository>
+      <id>repository.jboss.org</id>
+      <name>JBoss Repository</name>
+      <layout>default</layout>
+      <url>http://repository.jboss.org/maven2/</url>
+      <snapshots>
+        <enabled>false</enabled>
+      </snapshots>
+    </repository>
+    <repository>
+      <id>snapshots.jboss.org</id>
+      <name>JBoss Snapshots Repository</name>
+      <layout>default</layout>
+      <url>http://snapshots.jboss.org/maven2/</url>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+      <releases>
+        <enabled>false</enabled>
+      </releases>
+    </repository>
+    <!-- APIviz repository -->
+    <repository>
+      <id>apiviz.release</id>
+      <name>APIviz releases</name>
+      <url>http://apiviz.googlecode.com/svn/site/repo/mvn/release</url>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+      <snapshots>
+        <enabled>false</enabled>
+      </snapshots>
+    </repository>
+  </repositories>
+
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-project-info-reports-plugin</artifactId>
+        <reportSets>
+          <reportSet>
+            <reports>
+              <report>dependencies</report>
+              <report>issue-tracking</report>
+              <report>license</report>
+              <report>scm</report>
+            </reports>
+          </reportSet>
+        </reportSets>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>findbugs-maven-plugin</artifactId>
+        <version>2.0.1</version>
+        <configuration>
+          <findbugsXmlOutput>true</findbugsXmlOutput>
+          <!-- Optional directory to put findbugs xml report -->
+          <findbugsXmlOutputDirectory>target/site</findbugsXmlOutputDirectory>
+        </configuration>
+      </plugin>
+    </plugins>
+  </reporting>
+
+  <dependencyManagement>
+    <!-- The parent pom manages the inter-dependencies of the modules. -->
+    <dependencies>
+
+      <dependency>
+        <groupId>org.jboss.interceptor</groupId>
+        <artifactId>jboss-interceptor-api</artifactId>
+        <version>${version.interceptor.api}</version>
+      </dependency>
+      <dependency>
+        <groupId>junit</groupId>
+        <artifactId>junit</artifactId>
+        <version>${version.junit}</version>
+        <scope>test</scope>
+      </dependency>
+
+      <dependency>
+        <groupId>javassist</groupId>
+        <artifactId>javassist</artifactId>
+        <version>${version.javassist}</version>
+      </dependency>
+
+    </dependencies>
+  </dependencyManagement>
+</project>




More information about the jboss-cvs-commits mailing list