[jboss-cvs] JBossAS SVN: r68408 - projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Dec 19 06:39:38 EST 2007


Author: ALRubinger
Date: 2007-12-19 06:39:38 -0500 (Wed, 19 Dec 2007)
New Revision: 68408

Added:
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ActivationConfigPropertyImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ApplicationExceptionImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/AroundInvokeImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DeclareRolesImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DenyAllImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/InitImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/InterceptorsImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/MessageDrivenImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PermitAllImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PostActivateImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PostConstructImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PreDestroyImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PrePassivateImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ProducerLocalImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoveImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ResourceImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RolesAllowedImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RunAsImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/StatefulImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/StatelessImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/TransactionAttributeImpl.java
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/TransactionManagementImpl.java
Removed:
   projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalImpl.java
Log:
[EJBTHREE-1164][EJBTHREE-1168] Moved annotation impls into ejb3-impl; renamed LocalImpl to ProducerLocalImpl to avoid naming conflicts

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ActivationConfigPropertyImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/ActivationConfigPropertyImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ActivationConfigPropertyImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ActivationConfigPropertyImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import javax.ejb.ActivationConfigProperty;
+
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class ActivationConfigPropertyImpl implements ActivationConfigProperty
+{
+   private String name;
+   private String value;
+
+   public ActivationConfigPropertyImpl(String name, String value)
+   {
+      this.name = name;
+      this.value = value;
+   }
+
+   public String propertyName()
+   {
+      return name;
+   }
+
+   public String propertyValue()
+   {
+      return value;
+   }
+
+   public String name()
+   {
+      return ActivationConfigProperty.class.getName();
+   }
+
+   public Class annotationType()
+   {
+      return ActivationConfigProperty.class;
+   }
+   
+   public String toString()
+   {
+      return "ActivationConfigPropertyImpl:name=" + name + ", value=" + value;
+   }
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ApplicationExceptionImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/ApplicationExceptionImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ApplicationExceptionImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ApplicationExceptionImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import javax.ejb.ApplicationException;
+
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class ApplicationExceptionImpl implements ApplicationException
+{
+   private boolean rollback ;
+   
+   public ApplicationExceptionImpl(boolean rollback)
+   {
+      this.rollback = rollback;
+   }
+
+   public boolean rollback()
+   {
+      return rollback;
+   }
+
+   public Class annotationType()
+   {
+      return ApplicationException.class;
+   }
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/AroundInvokeImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/AroundInvokeImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/AroundInvokeImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/AroundInvokeImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import javax.interceptor.AroundInvoke;
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class AroundInvokeImpl implements AroundInvoke
+{
+   public AroundInvokeImpl()
+   {
+   }
+
+   public Class annotationType()
+   {
+      return AroundInvoke.class;
+   }
+
+   public String name()
+   {
+      return AroundInvoke.class.getName();
+   }
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DeclareRolesImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/DeclareRolesImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DeclareRolesImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DeclareRolesImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import javax.annotation.security.DeclareRoles;
+
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class DeclareRolesImpl implements DeclareRoles
+{
+   private String[] v;
+
+   public DeclareRolesImpl(String[] v)
+   {
+      this.v = v;
+   }
+
+   public String[] value()
+   {
+      return v;
+   }
+
+   public Class annotationType()
+   {
+      return DeclareRoles.class;
+   }
+
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DenyAllImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/DenyAllImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DenyAllImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DenyAllImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import javax.annotation.security.DenyAll;
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class DenyAllImpl implements DenyAll
+{
+   public DenyAllImpl()
+   {
+   }
+
+   public Class annotationType()
+   {
+      return DenyAll.class;
+   }
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/InitImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/InitImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/InitImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/InitImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,57 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import java.lang.annotation.Annotation;
+
+import javax.ejb.Init;
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class InitImpl implements Init
+{
+   private String value = "";
+
+   public InitImpl()
+   {
+
+   }
+
+   public String value()
+   {
+      return value;
+   }
+
+   public Class<? extends Annotation> annotationType()
+   {
+      return Init.class;
+   }
+   
+   public void setValue(String s)
+   {
+      this.value = s;
+   }
+}
\ No newline at end of file

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/InterceptorsImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/InterceptorsImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/InterceptorsImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/InterceptorsImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,86 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import java.util.LinkedHashSet;
+import java.util.Set;
+
+import javax.interceptor.Interceptors;
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class InterceptorsImpl implements Interceptors
+{
+   private Set<Class<?>> values = new LinkedHashSet<Class<?>>();
+
+   public InterceptorsImpl()
+   {
+   }
+
+   public Class<?>[] value()
+   {
+      Class<?>[] result = new Class[values.size()];
+      values.toArray(result);
+      return result;
+   }
+
+   public void addValue(Class<?> value)
+   {
+      values.add(value);
+   }
+
+   public static InterceptorsImpl getImpl(Interceptors interceptors)
+   {
+      if (interceptors == null)
+      {
+         return new InterceptorsImpl();
+      }
+      
+      if (interceptors instanceof InterceptorsImpl)
+      {
+         return (InterceptorsImpl)interceptors;
+      }
+      
+      InterceptorsImpl impl = new InterceptorsImpl();
+      
+      for (Class<?> clazz : interceptors.value())
+      {
+         impl.addValue(clazz);
+      }
+      return impl;
+   }
+   
+   public Class<Interceptors> annotationType()
+   {
+      return Interceptors.class;
+   }
+   
+   @Override
+   public String toString()
+   {
+      return super.toString() + "{value=" + values + "}";
+   }
+}

Deleted: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalImpl.java	2007-12-19 11:36:03 UTC (rev 68407)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -1,45 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, 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.ejb3.annotation.impl;
-
-import java.lang.annotation.Annotation;
-
-import org.jboss.ejb3.annotation.Local;
-
-/**
- * Comment
- *
- * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
- * @version $Revision$
- */
-public class LocalImpl implements Local
-{
-
-   public LocalImpl()
-   {
-   }
-
-   public Class<? extends Annotation> annotationType()
-   {
-      return Local.class;
-   }
-}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/LocalImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import java.lang.annotation.Annotation;
+
+import javax.ejb.Local;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
+ * @version $Revision$
+ */
+public class LocalImpl implements Local
+{
+   private Class<?>[] classes;
+
+   public LocalImpl(Class<?>[] classes)
+   {
+      this.classes = classes;
+   }
+
+   public Class<?>[] value()
+   {
+      return classes;
+   }
+
+   public Class<? extends Annotation> annotationType()
+   {
+      return Local.class;
+   }
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/MessageDrivenImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/MessageDrivenImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/MessageDrivenImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/MessageDrivenImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,107 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import java.lang.annotation.Annotation;
+import java.util.HashMap;
+
+import javax.ejb.MessageDriven;
+
+import javax.ejb.ActivationConfigProperty;
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class MessageDrivenImpl implements MessageDriven
+{
+   private String name = "";
+   private String mn = "";
+   private String desc = "";
+   private Class listenerInterface = Object.class;
+
+   private HashMap<String, ActivationConfigProperty> activationConfigProperties = new HashMap<String, ActivationConfigProperty>();
+
+   public MessageDrivenImpl(String name, ActivationConfigProperty[] activationConfigProperties)
+   {
+      this.name = name;
+      for (ActivationConfigProperty property : activationConfigProperties)
+      {
+         this.activationConfigProperties.put(property.propertyName(), property);
+      }
+   }
+
+   public String name()
+   {
+      return name;
+   }
+
+   public ActivationConfigProperty[] activationConfig()
+   {
+      ActivationConfigProperty[] properties = new ActivationConfigProperty[activationConfigProperties.size()];
+      activationConfigProperties.values().toArray(properties);
+      return properties;
+   }
+
+   public Class<? extends Annotation> annotationType()
+   {
+      return MessageDriven.class;
+   }
+   
+   public String mappedName() { return mn;}
+   public void setMappedName(String mn) { this.mn = mn; }
+   public String description() { return desc;}
+   public void setDescription(String desc) { this.desc = desc; }
+   public Class messageListenerInterface() { return listenerInterface;}
+   public void setMessageListenerInterface(Class clazz) { this.listenerInterface = clazz; }
+   
+   public void merge(MessageDriven annotation)
+   {   
+      if (name.length() == 0)
+         name = annotation.name();
+      
+      if (mn.length() == 0)
+         mn = annotation.mappedName();
+      
+      if (desc.length() == 0)
+         desc = annotation.description();
+      
+      if(listenerInterface == Object.class)
+         listenerInterface = annotation.messageListenerInterface();
+      
+      for (ActivationConfigProperty property : annotation.activationConfig())
+      {
+         if (!activationConfigProperties.containsKey(property.propertyName()))
+         {
+            activationConfigProperties.put(property.propertyName(), property);
+         }
+      }
+   }
+   
+   @Override
+   public String toString()
+   {
+      return super.toString() + "{name=" + name + ",description=" + desc + ",mappedName=" + mn + ",messageListenerInterface=" + listenerInterface + "}";
+   }
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PermitAllImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/PermitAllImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PermitAllImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PermitAllImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import javax.annotation.security.PermitAll;
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class PermitAllImpl implements PermitAll
+{
+   public PermitAllImpl()
+   {
+   }
+
+   public Class annotationType()
+   {
+      return PermitAll.class;
+   }
+
+   public String name()
+   {
+      return PermitAll.class.getName();
+   }
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PostActivateImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/PostActivateImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PostActivateImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PostActivateImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import javax.ejb.PostActivate;
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class PostActivateImpl implements PostActivate
+{
+   public PostActivateImpl()
+   {
+   }
+
+   public Class annotationType()
+   {
+      return PostActivate.class;
+   }
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PostConstructImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/PostConstructImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PostConstructImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PostConstructImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import javax.annotation.PostConstruct;
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class PostConstructImpl implements PostConstruct
+{
+   public PostConstructImpl()
+   {
+   }
+
+   public Class annotationType()
+   {
+      return PostConstruct.class;
+   }
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PreDestroyImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/PreDestroyImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PreDestroyImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PreDestroyImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import javax.annotation.PreDestroy;
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class PreDestroyImpl implements PreDestroy
+{
+   public PreDestroyImpl()
+   {
+   }
+
+   public Class annotationType()
+   {
+      return PreDestroy.class;
+   }
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PrePassivateImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/PrePassivateImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PrePassivateImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PrePassivateImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import javax.ejb.PrePassivate;
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class PrePassivateImpl implements PrePassivate
+{
+   public PrePassivateImpl()
+   {
+   }
+
+   public Class annotationType()
+   {
+      return PrePassivate.class;
+   }
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ProducerLocalImpl.java (from rev 68383, projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ProducerLocalImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ProducerLocalImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import java.lang.annotation.Annotation;
+
+import org.jboss.ejb3.annotation.ProducerLocal;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ * @version $Revision$
+ */
+public class ProducerLocalImpl implements ProducerLocal
+{
+
+   public ProducerLocalImpl()
+   {
+   }
+
+   public Class<? extends Annotation> annotationType()
+   {
+      return ProducerLocal.class;
+   }
+}


Property changes on: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ProducerLocalImpl.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/RemoteImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import java.lang.annotation.Annotation;
+import javax.ejb.Remote;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
+ * @version $Revision$
+ */
+public class RemoteImpl implements Remote
+{
+   private Class[] classes;
+
+   public RemoteImpl(Class[] classes)
+   {
+      this.classes = classes;
+   }
+
+
+   public Class[] value()
+   {
+      return classes;
+   }
+
+   public Class<? extends Annotation> annotationType()
+   {
+      return Remote.class;
+   }
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoveImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/RemoveImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoveImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoveImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import javax.ejb.Remove;
+
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class RemoveImpl implements Remove
+{
+   private boolean retain = false;
+
+   public RemoveImpl()
+   {
+
+   }
+
+   public RemoveImpl(boolean retain)
+   {
+      this.retain = retain;
+   }
+
+   public boolean retainIfException()
+   {
+      return retain;
+   }
+
+   public Class annotationType()
+   {
+      return Remove.class;
+   }
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ResourceImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/ResourceImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ResourceImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ResourceImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,104 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import javax.annotation.Resource;
+
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class ResourceImpl implements Resource
+{
+   private boolean shareable;
+   private AuthenticationType authenticationType;
+   private String name;
+   private Class type = Object.class;
+   private String description;
+   private String mappedName;
+
+   public ResourceImpl()
+   {
+   }
+
+   public String mappedName() { return mappedName; }
+
+
+
+   public String description()
+   {
+      return this.description;
+   }
+
+   public void setDescription(String description)
+   {
+      this.description = description;
+   }
+
+   public AuthenticationType authenticationType()
+   {
+      return authenticationType;
+   }
+
+   public void setAuthenticationType(AuthenticationType authorizationType)
+   {
+      this.authenticationType = authorizationType;
+   }
+
+   public Class type()
+   {
+      return type;
+   }
+
+   public void setType(Class type)
+   {
+      this.type = type;
+   }
+
+   public String name()
+   {
+      return name;
+   }
+
+   public void setName(String name)
+   {
+      this.name = name;
+   }
+
+   public boolean shareable()
+   {
+      return shareable;
+   }
+
+   public void setShareable(boolean shareable)
+   {
+      this.shareable = shareable;
+   }
+
+   public Class annotationType()
+   {
+      return Resource.class;
+   }
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RolesAllowedImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/RolesAllowedImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RolesAllowedImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RolesAllowedImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,63 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import java.util.ArrayList;
+
+import javax.annotation.security.RolesAllowed;
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class RolesAllowedImpl implements RolesAllowed
+{
+   private ArrayList values = new ArrayList();
+
+   public RolesAllowedImpl()
+   {
+   }
+
+   public void addValue(String value)
+   {
+      values.add(value);
+   }
+
+   public String[] value()
+   {
+      String[] value = new String[values.size()];
+      values.toArray(value);
+      return value;
+   }
+
+   public Class annotationType()
+   {
+      return RolesAllowed.class;
+   }
+
+   public String name()
+   {
+      return RolesAllowed.class.getName();
+   }
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RunAsImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/RunAsImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RunAsImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RunAsImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import javax.annotation.security.RunAs;
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class RunAsImpl implements RunAs
+{
+   private String value;
+
+   public RunAsImpl(String value)
+   {
+      this.value = value;
+   }
+
+   public String value()
+   {
+      return value;
+   }
+
+   public Class<RunAs> annotationType()
+   {
+      return RunAs.class;
+   }
+
+   public String name()
+   {
+      return RunAs.class.getName();
+   }
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/StatefulImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/StatefulImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/StatefulImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/StatefulImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import javax.ejb.Stateful;
+
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class StatefulImpl implements Stateful
+{
+   private String name ;
+
+   public StatefulImpl(String name)
+   {
+      this.name = name;
+   }
+
+   public String name()
+   {
+      return name;
+   }
+
+   public Class annotationType()
+   {
+      return Stateful.class;
+   }
+   public String mappedName() { return "";}
+   public String description() { return "";}
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/StatelessImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/StatelessImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/StatelessImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/StatelessImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import javax.ejb.Stateless;
+
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class StatelessImpl implements Stateless
+{
+   private String name;
+
+   public StatelessImpl(String name)
+   {
+      this.name = name;
+   }
+
+   public String name()
+   {
+      return name;
+   }
+
+   public Class annotationType()
+   {
+      return Stateless.class;
+   }
+
+   public String mappedName() { return "";}
+   public String description() { return "";}
+   
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/TransactionAttributeImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/TransactionAttributeImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/TransactionAttributeImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/TransactionAttributeImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import javax.ejb.TransactionAttribute;
+import javax.ejb.TransactionAttributeType;
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class TransactionAttributeImpl implements TransactionAttribute
+{
+   private TransactionAttributeType type;
+
+   public TransactionAttributeImpl()
+   {
+   }
+
+   public TransactionAttributeImpl(TransactionAttributeType type)
+   {
+      this.type = type;
+   }
+
+   public void setType(TransactionAttributeType type)
+   {
+      this.type = type;
+   }
+
+   public TransactionAttributeType value()
+   {
+      return type;
+   }
+
+   public Class annotationType()
+   {
+      return TransactionAttribute.class;
+   }
+
+   public String name()
+   {
+      return TransactionAttribute.class.getName();
+   }
+}

Copied: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/TransactionManagementImpl.java (from rev 68334, trunk/ejb3/src/main/org/jboss/ejb/TransactionManagementImpl.java)
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/TransactionManagementImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/TransactionManagementImpl.java	2007-12-19 11:39:38 UTC (rev 68408)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import javax.ejb.TransactionManagement;
+import javax.ejb.TransactionManagementType;
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class TransactionManagementImpl implements TransactionManagement
+{
+   private TransactionManagementType value = TransactionManagementType.CONTAINER;
+
+   public TransactionManagementImpl()
+   {
+   }
+
+   public TransactionManagementType value()
+   {
+      return value;
+   }
+
+   public void setValue(TransactionManagementType value)
+   {
+      this.value = value;
+   }
+
+   public Class<TransactionManagement> annotationType()
+   {
+      return TransactionManagement.class;
+   }
+}




More information about the jboss-cvs-commits mailing list