[jboss-cvs] JBossAS SVN: r105219 - in projects/mc-script/trunk: src/main/java/org/jboss/beans and 2 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue May 25 12:01:38 EDT 2010


Author: alesj
Date: 2010-05-25 12:01:36 -0400 (Tue, 25 May 2010)
New Revision: 105219

Added:
   projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/
   projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/Mock.java
   projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockConstructorJoinpoint.java
   projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockImpl.java
   projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockJoinpointFactory.java
   projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockJoinpointFactoryBuilder.java
   projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockMetaData.java
Removed:
   projects/mc-script/trunk/src/main/java/org/jboss/beans/script/package-info.java
Modified:
   projects/mc-script/trunk/pom.xml
Log:
Introduce <mock> element -- integration with Mockito.


Modified: projects/mc-script/trunk/pom.xml
===================================================================
--- projects/mc-script/trunk/pom.xml	2010-05-25 14:24:29 UTC (rev 105218)
+++ projects/mc-script/trunk/pom.xml	2010-05-25 16:01:36 UTC (rev 105219)
@@ -1,70 +1,152 @@
 <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.microcontainer</groupId>
-    <artifactId>jboss-microcontainer</artifactId>
-    <version>2.0.7-SNAPSHOT</version>
+    <groupId>org.jboss</groupId>
+    <artifactId>jboss-parent</artifactId>
+    <version>5</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <artifactId>jboss-mc-script</artifactId>
-  <version>2.0.7-SNAPSHOT</version>
+  <version>2.2.0-SNAPSHOT</version>
   <packaging>jar</packaging>
-  <name>JBoss Microcontainer Script Integration</name>
+  <name>JBoss MC Script</name>
   <url>http://www.jboss.com/products/jbossmc</url>
-  <description>JBoss Microcontainer Script Integration</description>  
+  <description>JBoss MC Script</description>
   <scm>
     <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/mc-script/trunk/</connection>
     <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/mc-script/trunk/</developerConnection>
     <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/mc-script/trunk/</url>
   </scm>
-
-
+
+  <properties>
+    <version.jboss.common.core>2.2.17.GA</version.jboss.common.core>
+    <version.jboss.logging.spi>2.1.1.GA</version.jboss.logging.spi>
+    <version.org.jboss.reflect>2.2.0.Alpha5</version.org.jboss.reflect>
+    <version.org.jboss.mdr>2.2.0.Alpha3</version.org.jboss.mdr>
+    <version.org.jboss.man>2.1.1.SP2</version.org.jboss.man>
+    <version.org.jboss.kernel>2.2.0.Alpha10</version.org.jboss.kernel>
+    <version.mockito>1.8.4</version.mockito>
+    <version.javassist>3.12.0.GA</version.javassist>
+    <version.org.jboss.test>1.1.1.GA</version.org.jboss.test>
+    <version.junit>4.4</version.junit>
+  </properties>
+
   <build>
+    <finalName>${artifactId}</finalName>
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
-        <!--configuration>
-          <testFailureIgnore>true</testFailureIgnore>
-        </configuration-->
-      </plugin>   	   
+        <version>2.4.3</version>
+        <configuration>
+          <redirectTestOutputToFile>true</redirectTestOutputToFile>
+          <includes>
+            <include>org/jboss/test/**/*TestCase.java</include>
+          </includes>
+          <useSystemClassLoader>true</useSystemClassLoader>
+          <systemProperties>
+            <property>
+              <name>xb.builder.useUnorderedSequence</name>
+              <value>true</value>
+            </property>
+            <property>
+              <name>org.jboss.joinpoint.spi.JoinpointFactoryBuilder</name>
+              <value>org.jboss.beans.mock.MockJoinpointFactoryBuilder</value>
+            </property>
+          </systemProperties>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>2.0.2</version>
+        <configuration>
+          <source>1.5</source>
+          <target>1.5</target>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.2</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>test-jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
-  
-  <!-- Do not add version information here, use ../pom.xml instead -->
   <dependencies>
     <!-- Global dependencies -->
     <dependency>
-      <groupId>org.jboss.microcontainer</groupId>
-      <artifactId>jboss-kernel</artifactId>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-reflect</artifactId>
+      <version>${version.org.jboss.reflect}</version>
+      <exclusions>
+        <exclusion>
+          <groupId>org.jboss</groupId>
+          <artifactId>jboss-common-core</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>jboss</groupId>
+          <artifactId>jboss-common-logging-spi</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
     <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-mdr</artifactId>
+      <version>${version.org.jboss.mdr}</version>
+    </dependency>
+    <dependency>
       <groupId>org.jboss.man</groupId>
       <artifactId>jboss-managed</artifactId>
-      <optional>true</optional>
+      <version>${version.org.jboss.man}</version>
     </dependency>
     <dependency>
+      <groupId>org.jboss.kernel</groupId>
+      <artifactId>jboss-dependency</artifactId>
+      <version>${version.org.jboss.kernel}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.kernel</groupId>
+      <artifactId>jboss-kernel</artifactId>
+      <version>${version.org.jboss.kernel}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.mockito</groupId>
+      <artifactId>mockito-core</artifactId>
+      <version>${version.mockito}</version>
+    </dependency>
+    <dependency>
       <groupId>javassist</groupId>
       <artifactId>javassist</artifactId>
+      <version>${version.javassist}</version>
       <optional>true</optional>
     </dependency>
     <dependency>
+      <groupId>org.jboss.logging</groupId>
+      <artifactId>jboss-logging-spi</artifactId>
+      <version>${version.jboss.logging.spi}</version>
+    </dependency>
+    <dependency>
       <groupId>org.jboss</groupId>
-      <artifactId>jbossxb</artifactId>
+      <artifactId>jboss-common-core</artifactId>
+      <version>${version.jboss.common.core}</version>
     </dependency>
     <!-- Test dependencies -->
     <dependency>
-      <groupId>org.jboss.logging</groupId>
-      <artifactId>jboss-logging-log4j</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
       <groupId>org.jboss.test</groupId>
       <artifactId>jboss-test</artifactId>
+      <version>${version.org.jboss.test}</version>
       <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
+      <version>${version.junit}</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

Added: projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/Mock.java
===================================================================
--- projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/Mock.java	                        (rev 0)
+++ projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/Mock.java	2010-05-25 16:01:36 UTC (rev 105219)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.beans.mock;
+
+/**
+ * Mock marker annotation.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public @interface Mock
+{
+   /**
+    * Additional mock-code interpretation value.
+    *
+    * @return mock-code
+    */
+   String value() default "";
+}
\ No newline at end of file

Added: projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockConstructorJoinpoint.java
===================================================================
--- projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockConstructorJoinpoint.java	                        (rev 0)
+++ projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockConstructorJoinpoint.java	2010-05-25 16:01:36 UTC (rev 105219)
@@ -0,0 +1,62 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.beans.mock;
+
+import org.jboss.joinpoint.plugins.BasicConstructorJoinPoint;
+import org.jboss.metadata.spi.MetaData;
+import org.jboss.reflect.spi.ClassInfo;
+import org.jboss.reflect.spi.ConstructorInfo;
+
+import static org.mockito.Mockito.*;
+
+/**
+ * Mock ctor joinpoint.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class MockConstructorJoinpoint extends BasicConstructorJoinPoint
+{
+   private MetaData metaData;
+
+   public MockConstructorJoinpoint(ConstructorInfo constructorInfo, MetaData metaData)
+   {
+      super(constructorInfo);
+      this.metaData = metaData;
+   }
+
+   @Override
+   @SuppressWarnings("deprecation")
+   public Object dispatch() throws Throwable
+   {
+      Mock mock = metaData.getAnnotation(Mock.class);
+      if (mock != null)
+      {
+         ClassInfo classInfo = constructorInfo.getDeclaringClass();
+         return mock(classInfo.getType()); // TODO -- args, mock-code, ...
+      }
+      else
+      {
+         return super.dispatch();
+      }
+   }
+}
\ No newline at end of file

Added: projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockImpl.java
===================================================================
--- projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockImpl.java	                        (rev 0)
+++ projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockImpl.java	2010-05-25 16:01:36 UTC (rev 105219)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.beans.mock;
+
+import java.lang.annotation.Annotation;
+
+/**
+ * Mock marker annotation impl.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+class MockImpl implements Mock
+{
+   private String value;
+
+   MockImpl(String value)
+   {
+      this.value = value;
+   }
+
+   public String value()
+   {
+      return value;
+   }
+
+   public Class<? extends Annotation> annotationType()
+   {
+      return Mock.class;
+   }
+}
\ No newline at end of file

Added: projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockJoinpointFactory.java
===================================================================
--- projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockJoinpointFactory.java	                        (rev 0)
+++ projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockJoinpointFactory.java	2010-05-25 16:01:36 UTC (rev 105219)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.beans.mock;
+
+import org.jboss.joinpoint.plugins.BasicJoinpointFactory;
+import org.jboss.joinpoint.plugins.BasicJoinpointFactoryBuilder;
+import org.jboss.joinpoint.spi.ConstructorJoinpoint;
+import org.jboss.joinpoint.spi.JoinpointException;
+import org.jboss.joinpoint.spi.JoinpointFactory;
+import org.jboss.metadata.spi.MetaData;
+import org.jboss.reflect.spi.ClassInfo;
+import org.jboss.reflect.spi.ConstructorInfo;
+
+/**
+ * Mock joinpoint factory.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class MockJoinpointFactory extends BasicJoinpointFactory
+{
+   public MockJoinpointFactory(ClassInfo classInfo)
+   {
+      super(classInfo);
+   }
+
+   public ConstructorJoinpoint getConstructorJoinpoint(ConstructorInfo constructorInfo, Object metaData) throws JoinpointException
+   {
+      if (metaData == null || metaData instanceof MetaData == false)
+         return getConstructorJoinpoint(constructorInfo);
+
+      return new MockConstructorJoinpoint(constructorInfo, (MetaData)metaData);
+   }
+}
\ No newline at end of file

Added: projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockJoinpointFactoryBuilder.java
===================================================================
--- projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockJoinpointFactoryBuilder.java	                        (rev 0)
+++ projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockJoinpointFactoryBuilder.java	2010-05-25 16:01:36 UTC (rev 105219)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.beans.mock;
+
+import org.jboss.joinpoint.plugins.BasicJoinpointFactoryBuilder;
+import org.jboss.joinpoint.spi.JoinpointFactory;
+import org.jboss.reflect.spi.ClassInfo;
+
+/**
+ * Mock joinpoint factory builder.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class MockJoinpointFactoryBuilder extends BasicJoinpointFactoryBuilder
+{
+   @Override
+   public JoinpointFactory createJoinpointFactory(ClassInfo classInfo)
+   {
+      return new MockJoinpointFactory(classInfo);
+   }
+}
\ No newline at end of file

Added: projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockMetaData.java
===================================================================
--- projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockMetaData.java	                        (rev 0)
+++ projects/mc-script/trunk/src/main/java/org/jboss/beans/mock/MockMetaData.java	2010-05-25 16:01:36 UTC (rev 105219)
@@ -0,0 +1,71 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.beans.mock;
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlNsForm;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Set;
+
+import org.jboss.beans.metadata.plugins.AbstractBeanMetaData;
+import org.jboss.beans.metadata.plugins.DirectAnnotationMetaData;
+import org.jboss.beans.metadata.spi.AnnotationMetaData;
+import org.jboss.beans.metadata.spi.BeanMetaData;
+import org.jboss.xb.annotations.JBossXmlSchema;
+
+/**
+ * Mock bean meta data.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+ at JBossXmlSchema(namespace="urn:jboss:bean-deployer:mock:2.0", elementFormDefault=XmlNsForm.QUALIFIED)
+ at XmlRootElement(name="mock")
+ at XmlType(name="mockType", propOrder={"aliasMetaData", "related", "annotations", "classLoader", "constructor", "properties", "create", "start", "stop", "destroy", "depends", "demands", "supplies", "installs", "uninstalls", "installCallbacks", "uninstallCallbacks", "mockCode"})
+public class MockMetaData extends AbstractBeanMetaData
+{
+   private String mockCode;
+
+   public String getMockCode()
+   {
+      return mockCode;
+   }
+
+   @XmlElement(name = "mock-code")
+   public void setMockCode(String mockCode)
+   {
+      this.mockCode = mockCode;
+   }
+
+   @Override
+   public List<BeanMetaData> getBeans()
+   {
+      Set<AnnotationMetaData> annotations = super.getAnnotations();
+      AnnotationMetaData mock = new DirectAnnotationMetaData(new MockImpl(mockCode));
+      annotations.add(mock);
+      return Collections.singletonList((BeanMetaData)this);
+   }
+}

Deleted: projects/mc-script/trunk/src/main/java/org/jboss/beans/script/package-info.java
===================================================================
--- projects/mc-script/trunk/src/main/java/org/jboss/beans/script/package-info.java	2010-05-25 14:24:29 UTC (rev 105218)
+++ projects/mc-script/trunk/src/main/java/org/jboss/beans/script/package-info.java	2010-05-25 16:01:36 UTC (rev 105219)
@@ -1,41 +0,0 @@
-/*
-* 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.
-*/
-
-/**
- * TODO: Fixme this is very brittle
- */
- at JBossXmlAdaptedTypes
-({
-   @JBossXmlAdaptedType(type=Cardinality.class, valueAdapter=CardinalityValueAdapter.class),
-   @JBossXmlAdaptedType(type=ControllerState.class, valueAdapter=ControllerStateValueAdapter.class),
-   @JBossXmlAdaptedType(type=SearchInfo.class, valueAdapter=SearchInfoValueAdapter.class)
-})
-package org.jboss.beans.script;
-
-import org.jboss.beans.metadata.plugins.CardinalityValueAdapter;
-import org.jboss.beans.metadata.plugins.ControllerStateValueAdapter;
-import org.jboss.beans.metadata.plugins.SearchInfoValueAdapter;
-import org.jboss.dependency.spi.Cardinality;
-import org.jboss.dependency.spi.ControllerState;
-import org.jboss.dependency.spi.graph.SearchInfo;
-import org.jboss.xb.annotations.JBossXmlAdaptedType;
-import org.jboss.xb.annotations.JBossXmlAdaptedTypes;




More information about the jboss-cvs-commits mailing list