[jboss-cvs] JBossAS SVN: r94023 - in projects/integration/trunk: jboss-annotations-spi and 9 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Sep 25 10:41:06 EDT 2009
Author: alesj
Date: 2009-09-25 10:41:05 -0400 (Fri, 25 Sep 2009)
New Revision: 94023
Added:
projects/integration/trunk/jboss-annotations-spi/
projects/integration/trunk/jboss-annotations-spi/pom.xml
projects/integration/trunk/jboss-annotations-spi/src/
projects/integration/trunk/jboss-annotations-spi/src/main/
projects/integration/trunk/jboss-annotations-spi/src/main/java/
projects/integration/trunk/jboss-annotations-spi/src/main/java/org/
projects/integration/trunk/jboss-annotations-spi/src/main/java/org/jboss/
projects/integration/trunk/jboss-annotations-spi/src/main/java/org/jboss/annotations/
projects/integration/trunk/jboss-annotations-spi/src/main/java/org/jboss/annotations/spi/
projects/integration/trunk/jboss-annotations-spi/src/main/java/org/jboss/annotations/spi/jmx/
projects/integration/trunk/jboss-annotations-spi/src/main/java/org/jboss/annotations/spi/jmx/JMX.java
projects/integration/trunk/jboss-annotations-spi/src/main/java/org/jboss/annotations/spi/naming/
projects/integration/trunk/jboss-annotations-spi/src/main/java/org/jboss/annotations/spi/naming/JNDI.java
Modified:
projects/integration/trunk/pom.xml
Log:
Add new jboss-annotations-spi integration project.
This should keep all integartion annotations, where their actual impl/handling is impl detail.
e.g. @JMX, @JNDI, ...
Added: projects/integration/trunk/jboss-annotations-spi/pom.xml
===================================================================
--- projects/integration/trunk/jboss-annotations-spi/pom.xml (rev 0)
+++ projects/integration/trunk/jboss-annotations-spi/pom.xml 2009-09-25 14:41:05 UTC (rev 94023)
@@ -0,0 +1,14 @@
+<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/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.integration</groupId>
+ <artifactId>jboss-integration-parent</artifactId>
+ <version>6.0.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jboss-annotations-spi</artifactId>
+ <version>6.0.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <name>JBoss Annotations 6.0.0 SPI</name>
+ <url>http://www.jboss.org</url>
+ <description>Various annotations at a single place</description>
+</project>
Added: projects/integration/trunk/jboss-annotations-spi/src/main/java/org/jboss/annotations/spi/jmx/JMX.java
===================================================================
--- projects/integration/trunk/jboss-annotations-spi/src/main/java/org/jboss/annotations/spi/jmx/JMX.java (rev 0)
+++ projects/integration/trunk/jboss-annotations-spi/src/main/java/org/jboss/annotations/spi/jmx/JMX.java 2009-09-25 14:41:05 UTC (rev 94023)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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 org.jboss.annotations.spi.jmx;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import java.lang.annotation.ElementType;
+
+/**
+ * Marks inclusion into MBeanServer.
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @author Brian Stansberry
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+ at Retention(RetentionPolicy.RUNTIME)
+ at Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
+public @interface JMX
+{
+ /**
+ * The mbean interface the annotated object should expose. Ignored if
+ * {@link #registerDirectly()} is <code>true</code>.
+ *
+ * @return the mbean interface
+ */
+ Class<?> exposedInterface();
+
+ /**
+ * String form of the ObjectName for the mbean.
+ *
+ * @return the object name
+ */
+ String name() default "";
+
+ /**
+ * Should the annotated object itself be directly registered with
+ * the MBeanServer, or should a <code>javax.management.StandardMBean</code>
+ * be created using the object and the
+ * {@link #exposedInterface() exposed interface}?
+ *
+ * @return <code>true</code> if the object should be registered directly,
+ * <code>false</code> if a StandardMBean should be created.
+ */
+ boolean registerDirectly() default false;
+}
Added: projects/integration/trunk/jboss-annotations-spi/src/main/java/org/jboss/annotations/spi/naming/JNDI.java
===================================================================
--- projects/integration/trunk/jboss-annotations-spi/src/main/java/org/jboss/annotations/spi/naming/JNDI.java (rev 0)
+++ projects/integration/trunk/jboss-annotations-spi/src/main/java/org/jboss/annotations/spi/naming/JNDI.java 2009-09-25 14:41:05 UTC (rev 94023)
@@ -0,0 +1,59 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2008, 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 org.jboss.annotations.spi.naming;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * JNDI.
+ *
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+ at Target(ElementType.TYPE)
+ at Retention(RetentionPolicy.RUNTIME)
+public @interface JNDI
+{
+ /**
+ * The jndi binding
+ *
+ * @return the binding qualifier
+ */
+ String binding();
+
+ /**
+ * Whether to bind directly.
+ *
+ * @return true if we should bind directly, false if via factory
+ */
+ boolean bindDirect() default false;
+
+ /**
+ * The class name to use for the jndi binding
+ *
+ * @return the classname used for binding
+ */
+ String className() default "";
+}
Modified: projects/integration/trunk/pom.xml
===================================================================
--- projects/integration/trunk/pom.xml 2009-09-25 14:31:08 UTC (rev 94022)
+++ projects/integration/trunk/pom.xml 2009-09-25 14:41:05 UTC (rev 94023)
@@ -25,12 +25,12 @@
<version.org.jboss.logging>2.1.0.GA</version.org.jboss.logging>
<version.org.jboss.reflect>2.0.2.GA</version.org.jboss.reflect>
<version.org.jboss.man>2.1.0.SP1</version.org.jboss.man>
- <version.org.jboss.deployers>2.0.5.GA</version.org.jboss.deployers>
- <version.org.jboss.vfs>2.1.2.GA</version.org.jboss.vfs>
+ <version.org.jboss.deployers>2.0.8.GA</version.org.jboss.deployers>
+ <version.org.jboss.vfs>2.1.3.SP1</version.org.jboss.vfs>
<version.org.jboss.aop>2.1.1.GA</version.org.jboss.aop>
<version.org.jboss.common.core>2.2.14.GA</version.org.jboss.common.core>
<version.jacorb>2.3.0jboss.patch6-brew</version.jacorb>
- <version.org.jboss.microcontainer>2.0.6.GA</version.org.jboss.microcontainer>
+ <version.org.jboss.microcontainer>2.0.9.GA</version.org.jboss.microcontainer>
</properties>
<modules>
@@ -41,6 +41,7 @@
<module>jboss-jca-spi</module>
<module>jboss-profileservice-spi</module>
<module>jboss-scanning-spi</module>
+ <module>jboss-annotations-spi</module>
<module>build</module>
</modules>
More information about the jboss-cvs-commits
mailing list