[Jboss-cvs] JBossAS SVN: r56621 - branches/Branch_4_0/ejb3/src/main/org/jboss/annotation/ejb

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Sep 7 22:23:23 EDT 2006


Author: bill.burke at jboss.com
Date: 2006-09-07 22:23:22 -0400 (Thu, 07 Sep 2006)
New Revision: 56621

Added:
   branches/Branch_4_0/ejb3/src/main/org/jboss/annotation/ejb/DefaultActivationSpecsImpl.java
   branches/Branch_4_0/ejb3/src/main/org/jboss/annotation/ejb/IIOP.java
   branches/Branch_4_0/ejb3/src/main/org/jboss/annotation/ejb/PoolClassImpl.java
   branches/Branch_4_0/ejb3/src/main/org/jboss/annotation/ejb/SerializedConcurrentAccessImpl.java
Log:


Added: branches/Branch_4_0/ejb3/src/main/org/jboss/annotation/ejb/DefaultActivationSpecsImpl.java
===================================================================
--- branches/Branch_4_0/ejb3/src/main/org/jboss/annotation/ejb/DefaultActivationSpecsImpl.java	2006-09-08 02:18:23 UTC (rev 56620)
+++ branches/Branch_4_0/ejb3/src/main/org/jboss/annotation/ejb/DefaultActivationSpecsImpl.java	2006-09-08 02:23:22 UTC (rev 56621)
@@ -0,0 +1,70 @@
+/*
+  * 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 org.jboss.annotation.ejb;
+
+import java.lang.annotation.Annotation;
+import java.util.ArrayList;
+import java.util.HashMap;
+
+import javax.ejb.ActivationConfigProperty;
+import javax.ejb.MessageDriven;
+
+/**
+ * @version <tt>$Revision: 45143 $</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class DefaultActivationSpecsImpl implements DefaultActivationSpecs
+{
+   private HashMap activationConfigProperties = new HashMap();
+   
+   public DefaultActivationSpecsImpl()
+   {
+   }
+   
+   public ActivationConfigProperty[] value()
+   {
+      ActivationConfigProperty[] value = new ActivationConfigProperty[activationConfigProperties.size()];
+      activationConfigProperties.values().toArray(value);
+      return value;
+   }
+   
+   public void addActivationConfigProperty(ActivationConfigProperty property)
+   {
+      activationConfigProperties.put(property.propertyName(), property);
+   }
+   
+   public void merge(DefaultActivationSpecs annotation)
+   {   
+      for (ActivationConfigProperty property : annotation.value())
+      {
+         if (!activationConfigProperties.containsKey(property.propertyName()))
+         {
+            activationConfigProperties.put(property.propertyName(), property);
+         }
+      }
+   }
+
+   public Class<? extends Annotation> annotationType()
+   {
+      return DefaultActivationSpecs.class;
+   }
+}

Added: branches/Branch_4_0/ejb3/src/main/org/jboss/annotation/ejb/IIOP.java
===================================================================
--- branches/Branch_4_0/ejb3/src/main/org/jboss/annotation/ejb/IIOP.java	2006-09-08 02:18:23 UTC (rev 56620)
+++ branches/Branch_4_0/ejb3/src/main/org/jboss/annotation/ejb/IIOP.java	2006-09-08 02:23:22 UTC (rev 56621)
@@ -0,0 +1,47 @@
+/*
+  * 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 org.jboss.annotation.ejb;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * This annotation binds a bean into Corba.
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: 46552 $
+ */
+ at Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
+ at Retention(RetentionPolicy.RUNTIME)
+public @interface IIOP {
+   final String POA_SHARED = "shared";
+   final String POA_PER_SERVANT = "per-servant";
+   
+   boolean interfaceRepositorySupported() default false;
+   
+   /**
+    * per-servant or shared portable object adapter
+    */
+   String poa() default POA_PER_SERVANT;
+}

Added: branches/Branch_4_0/ejb3/src/main/org/jboss/annotation/ejb/PoolClassImpl.java
===================================================================
--- branches/Branch_4_0/ejb3/src/main/org/jboss/annotation/ejb/PoolClassImpl.java	2006-09-08 02:18:23 UTC (rev 56620)
+++ branches/Branch_4_0/ejb3/src/main/org/jboss/annotation/ejb/PoolClassImpl.java	2006-09-08 02:23:22 UTC (rev 56621)
@@ -0,0 +1,85 @@
+/*
+  * 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 org.jboss.annotation.ejb;
+
+import java.lang.annotation.Annotation;
+
+/**
+ * @version <tt>$Revision: 55512 $</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class PoolClassImpl implements PoolClass
+{
+   public Class value;
+   public int maxSize = 30;
+   public long timeout = Long.MAX_VALUE;
+
+   public PoolClassImpl()
+   {
+   }
+   
+   public Class value()
+   {
+      return value;
+   }
+   
+   public void setValue(Class value)
+   {
+      this.value = value;
+   }
+
+   public int maxSize()
+   {
+      return maxSize;
+   }
+   
+   public void setMaxSize(int maxSize)
+   {
+      this.maxSize = maxSize;
+   }
+
+   public long timeout()
+   {
+      return timeout;
+   }
+   
+   public void setTimeout(long timeout)
+   {
+      this.timeout = timeout;
+   }
+
+   public Class<? extends Annotation> annotationType()
+   {
+      return PoolClass.class;
+   }
+   
+   public String toString()
+   {
+      StringBuffer sb = new StringBuffer(100);
+      sb.append("[PoolClassImpl:");
+      sb.append("value=").append(value);
+      sb.append(", maxSize=").append(maxSize);
+      sb.append(", timeout=").append(timeout);
+      sb.append("]");
+      return sb.toString();
+   }
+}

Added: branches/Branch_4_0/ejb3/src/main/org/jboss/annotation/ejb/SerializedConcurrentAccessImpl.java
===================================================================
--- branches/Branch_4_0/ejb3/src/main/org/jboss/annotation/ejb/SerializedConcurrentAccessImpl.java	2006-09-08 02:18:23 UTC (rev 56620)
+++ branches/Branch_4_0/ejb3/src/main/org/jboss/annotation/ejb/SerializedConcurrentAccessImpl.java	2006-09-08 02:23:22 UTC (rev 56621)
@@ -0,0 +1,41 @@
+/*
+  * 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 org.jboss.annotation.ejb;
+
+import java.lang.annotation.Annotation;
+
+
+/**
+ * @version <tt>$Revision: 45088 $</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class SerializedConcurrentAccessImpl implements SerializedConcurrentAccess
+{
+   public SerializedConcurrentAccessImpl()
+   {
+   }
+
+   public Class<? extends Annotation> annotationType()
+   {
+      return SerializedConcurrentAccess.class;
+   }
+}




More information about the jboss-cvs-commits mailing list