[jboss-cvs] JBossAS SVN: r67572 - in projects/ejb3/trunk: ejb3-impl and 11 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Nov 28 16:10:15 EST 2007
Author: ALRubinger
Date: 2007-11-28 16:10:14 -0500 (Wed, 28 Nov 2007)
New Revision: 67572
Added:
projects/ejb3/trunk/ejb3-impl/
projects/ejb3/trunk/ejb3-impl/.classpath
projects/ejb3/trunk/ejb3-impl/.project
projects/ejb3/trunk/ejb3-impl/.settings/
projects/ejb3/trunk/ejb3-impl/.settings/org.eclipse.jdt.core.prefs
projects/ejb3/trunk/ejb3-impl/pom.xml
projects/ejb3/trunk/ejb3-impl/src/
projects/ejb3/trunk/ejb3-impl/src/main/
projects/ejb3/trunk/ejb3-impl/src/main/java/
projects/ejb3/trunk/ejb3-impl/src/main/java/org/
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/AspectDomainImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/CacheConfigImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/CacheImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ConsumerImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/CurrentMessageImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DefaultActivationSpecsImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DependsImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ExcludeClassInterceptorsImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ExcludeDefaultInterceptorsImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/IgnoreDependencyImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/JndiBindingPolicyImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalBindingImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalHomeBindingImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalHomeImpl.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/ManagementImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/MessagePropertiesImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PersistenceManagerImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PoolImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteBindingImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteBindingsImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteHomeBindingImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteHomeImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ResourceAdapterImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/SerializedConcurrentAccessImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ServiceImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/TransactionTimeoutImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/util/
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/util/Debugger.java
projects/ejb3/trunk/ejb3-impl/src/main/resources/
projects/ejb3/trunk/ejb3-impl/src/test/
projects/ejb3/trunk/ejb3-impl/src/test/java/
projects/ejb3/trunk/ejb3-impl/src/test/resources/
Log:
[EJBTHREE-1134] Added EJB3 Implementation Classes Project
Added: projects/ejb3/trunk/ejb3-impl/.classpath
===================================================================
--- projects/ejb3/trunk/ejb3-impl/.classpath (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/.classpath 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="src" path="src/test/java"/>
+ <classpathentry excluding="**" kind="src" output="src/main/resources" path="src/main/resources"/>
+ <classpathentry excluding="**" kind="src" output="src/test/resources" path="src/test/resources"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
Added: projects/ejb3/trunk/ejb3-impl/.project
===================================================================
--- projects/ejb3/trunk/ejb3-impl/.project (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/.project 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>jboss-ejb3-impl</name>
+ <comment>JBoss EJB 3 Implementation Classes</comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: projects/ejb3/trunk/ejb3-impl/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- projects/ejb3/trunk/ejb3-impl/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/.settings/org.eclipse.jdt.core.prefs 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,5 @@
+#Fri Nov 16 20:23:57 CET 2007
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
Added: projects/ejb3/trunk/ejb3-impl/pom.xml
===================================================================
--- projects/ejb3/trunk/ejb3-impl/pom.xml (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/pom.xml 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <parent>
+ <artifactId>jboss-ejb3</artifactId>
+ <groupId>org.jboss.ejb3</groupId>
+ <version>0.11.0-SNAPSHOT</version>
+ <relativePath>../build/pom.xml</relativePath>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.ejb3</groupId>
+ <artifactId>jboss-ejb3-impl</artifactId>
+ <name>JBoss EJB 3 Implementation Classes</name>
+
+ <version>0.1.1-SNAPSHOT</version>
+ <description>
+ JBoss EJB 3 Implementation Internals conforming to API
+ </description>
+ <url>http://labs.jboss.com/jbossejb3/</url>
+
+ <scm>
+ <connection>
+ scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/trunk/
+ </connection>
+ <developerConnection>
+ scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb/trunk/
+ </developerConnection>
+ <url>
+ http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/ejb3/trunk/
+ </url>
+ </scm>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.ejb3</groupId>
+ <artifactId>jboss-ejb3-ext-api</artifactId>
+ <version>0.1.1-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+
+</project>
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/AspectDomainImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/AspectDomainImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/AspectDomainImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -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 org.jboss.ejb3.annotation.AspectDomain;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ * @version $Revision: 61136 $
+ */
+public class AspectDomainImpl implements AspectDomain
+{
+ String value = "";
+
+ public AspectDomainImpl(String value)
+ {
+ this.value = value;
+ }
+
+ public String value()
+ {
+ return value;
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return AspectDomain.class;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/CacheConfigImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/CacheConfigImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/CacheConfigImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,135 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, 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.CacheConfig;
+
+/**
+ * Implementation of CacheConfig Annotation
+ *
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+public class CacheConfigImpl implements CacheConfig
+{
+
+ // Instance Members
+
+ private String name;
+
+ private int maxSize = CacheConfig.DEFAULT_NONCLUSTERED_MAX_SIZE;
+
+ private long idleTimeoutSeconds = CacheConfig.DEFAULT_IDLE_TIMEOUT_SECONDS;
+
+ private long removalTimeoutSeconds = CacheConfig.DEFAULT_REMOVAL_TIMEOUT_SECONDS;
+
+ private boolean replicationIsPassivation = CacheConfig.DEFAULT_REPL_IS_PASV;
+
+ // Constructor
+
+ public CacheConfigImpl()
+ {
+ }
+
+ // Accessors / Mutators
+
+ public String name()
+ {
+ return name;
+ }
+
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ public int maxSize()
+ {
+ return maxSize;
+ }
+
+ public void setMaxSize(int maxSize)
+ {
+ this.maxSize = maxSize;
+ }
+
+ public long idleTimeoutSeconds()
+ {
+ return idleTimeoutSeconds;
+ }
+
+ public void setIdleTimeoutSeconds(long idleTimeoutSeconds)
+ {
+ this.idleTimeoutSeconds = idleTimeoutSeconds;
+ }
+
+ public long removalTimeoutSeconds()
+ {
+ return removalTimeoutSeconds;
+ }
+
+ public void setRemovalTimeoutSeconds(long removalTimeoutSeconds)
+ {
+ this.removalTimeoutSeconds = removalTimeoutSeconds;
+ }
+
+ public boolean replicationIsPassivation()
+ {
+ return replicationIsPassivation;
+ }
+
+ public void setReplicationIsPassivation(boolean replicationIsPassivation)
+ {
+ this.replicationIsPassivation = replicationIsPassivation;
+ }
+
+ public void merge(CacheConfig annotation)
+ {
+ if (maxSize == CacheConfig.DEFAULT_NONCLUSTERED_MAX_SIZE)
+ {
+ maxSize = annotation.maxSize();
+ }
+
+ if (idleTimeoutSeconds == CacheConfig.DEFAULT_IDLE_TIMEOUT_SECONDS)
+ {
+ idleTimeoutSeconds = annotation.idleTimeoutSeconds();
+ }
+
+ if (removalTimeoutSeconds == CacheConfig.DEFAULT_REMOVAL_TIMEOUT_SECONDS)
+ {
+ removalTimeoutSeconds = annotation.removalTimeoutSeconds();
+ }
+
+ if (replicationIsPassivation == CacheConfig.DEFAULT_REPL_IS_PASV)
+ {
+ replicationIsPassivation = annotation.replicationIsPassivation();
+ }
+
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return CacheConfig.class;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/CacheImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/CacheImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/CacheImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, 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.Cache;
+
+/**
+ * Implementation of @Cache annotation
+ *
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: 66977 $
+ */
+public class CacheImpl implements Cache
+{
+ private String value;
+
+ public CacheImpl(String value)
+ {
+ this.value = value;
+ }
+
+ public String value()
+ {
+ return value;
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return Cache.class;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ConsumerImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ConsumerImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ConsumerImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -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.lang.annotation.Annotation;
+import java.util.HashMap;
+import java.util.Iterator;
+
+import javax.ejb.ActivationConfigProperty;
+
+import org.jboss.ejb3.annotation.Consumer;
+
+/**
+ * @version <tt>$Revision: 67430 $</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class ConsumerImpl implements Consumer
+{
+ private String name = "";
+ private HashMap<String, ActivationConfigProperty> activationConfig = new HashMap<String, ActivationConfigProperty>();
+
+ public ConsumerImpl(Consumer consumer)
+ {
+ if (consumer != null)
+ {
+ name = consumer.name();
+ if (consumer.activationConfig() != null)
+ {
+ for (ActivationConfigProperty prop : consumer.activationConfig())
+ {
+ activationConfig.put(prop.propertyName(), prop);
+ }
+ }
+ }
+ }
+
+ public String name()
+ {
+ return name;
+ }
+
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ public ActivationConfigProperty[] activationConfig()
+ {
+ ActivationConfigProperty[] result = new ActivationConfigProperty[activationConfig.size()];
+ int i = 0;
+ for (Iterator<ActivationConfigProperty> it = activationConfig.values().iterator() ; it.hasNext() ; )
+ {
+ result[i++] = it.next();
+ }
+ return result;
+ }
+
+ public void addActivationConfig(ActivationConfigProperty config)
+ {
+ activationConfig.put(config.propertyName(), config);
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return Consumer.class;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/CurrentMessageImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/CurrentMessageImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/CurrentMessageImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,44 @@
+/*
+ * 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.CurrentMessage;
+
+/**
+ * @version <tt>$Revision: 67430 $</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class CurrentMessageImpl implements CurrentMessage
+{
+
+ public CurrentMessageImpl()
+ {
+
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return CurrentMessage.class;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DefaultActivationSpecsImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DefaultActivationSpecsImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DefaultActivationSpecsImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,70 @@
+/*
+ * 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.ActivationConfigProperty;
+
+import org.jboss.ejb3.annotation.DefaultActivationSpecs;
+
+/**
+ * @version <tt>$Revision: 61136 $</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: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DependsImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DependsImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DependsImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -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 java.util.ArrayList;
+
+import org.jboss.ejb3.annotation.Depends;
+
+/**
+ * @version <tt>$Revision: 61136 $</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class DependsImpl implements Depends
+{
+ private ArrayList<String> dependencies = new ArrayList();
+
+ public DependsImpl()
+ {
+ }
+
+ public String[] value()
+ {
+ String[] value = new String[dependencies.size()];
+ dependencies.toArray(value);
+ return value;
+ }
+
+ public void addDependency(String dependency)
+ {
+ dependencies.add(dependency);
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return Depends.class;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ExcludeClassInterceptorsImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ExcludeClassInterceptorsImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ExcludeClassInterceptorsImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,41 @@
+/*
+ * 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.interceptor.ExcludeClassInterceptors;
+
+/**
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 61136 $
+ */
+public class ExcludeClassInterceptorsImpl implements ExcludeClassInterceptors
+{
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return ExcludeClassInterceptors.class;
+ }
+
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ExcludeDefaultInterceptorsImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ExcludeDefaultInterceptorsImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ExcludeDefaultInterceptorsImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,41 @@
+/*
+ * 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.interceptor.ExcludeDefaultInterceptors;
+
+/**
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 61136 $
+ */
+public class ExcludeDefaultInterceptorsImpl implements ExcludeDefaultInterceptors
+{
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return ExcludeDefaultInterceptors.class;
+ }
+
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/IgnoreDependencyImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/IgnoreDependencyImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/IgnoreDependencyImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -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 java.lang.annotation.Annotation;
+
+import org.jboss.ejb3.annotation.IgnoreDependency;
+
+/**
+ * @version <tt>$Revision: 61136 $</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class IgnoreDependencyImpl implements IgnoreDependency
+{
+ public IgnoreDependencyImpl()
+ {
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return IgnoreDependency.class;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/JndiBindingPolicyImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/JndiBindingPolicyImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/JndiBindingPolicyImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, 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.JndiBindingPolicy;
+import org.jboss.ejb3.jndipolicy.DefaultJndiBindingPolicy;
+
+/**
+ * Implementation of JndiBindingPolicy annotation
+ *
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+public class JndiBindingPolicyImpl implements JndiBindingPolicy
+{
+
+ // Instance Members
+ private Class<? extends DefaultJndiBindingPolicy> policy;
+
+ // Contracts
+
+ public Class<? extends DefaultJndiBindingPolicy> policy(){
+ return policy;
+ }
+
+ public void setPolicy(Class<? extends DefaultJndiBindingPolicy> policy)
+ {
+ this.policy = policy;
+ }
+
+ // Required Implementations
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return JndiBindingPolicy.class;
+ }
+
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalBindingImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalBindingImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalBindingImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -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 org.jboss.ejb3.annotation.LocalBinding;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
+ * @version $Revision: 67430 $
+ */
+public class LocalBindingImpl implements LocalBinding
+{
+ private String jndi;
+
+ public LocalBindingImpl(String jndi)
+ {
+ this.jndi = jndi;
+ }
+
+ public String jndiBinding()
+ {
+ return jndi;
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return LocalBinding.class;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalHomeBindingImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalHomeBindingImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalHomeBindingImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -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 java.lang.annotation.Annotation;
+
+import org.jboss.ejb3.annotation.LocalHomeBinding;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class LocalHomeBindingImpl implements LocalHomeBinding
+{
+ private String jndi;
+
+ public LocalHomeBindingImpl(String jndi)
+ {
+ this.jndi = jndi;
+ }
+
+ public String jndiBinding()
+ {
+ return jndi;
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return LocalHomeBinding.class;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalHomeImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalHomeImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalHomeImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,50 @@
+/*
+ * 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.LocalHome;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
+ * @version $Revision: 66558 $
+ */
+public class LocalHomeImpl implements LocalHome
+{
+ private Class<?> value;
+
+ public LocalHomeImpl(Class<?> value)
+ {
+ this.value = value;
+ }
+
+ public Class<?> value()
+ {
+ return value;
+ }
+
+ public Class<LocalHome> annotationType()
+ {
+ return LocalHome.class;
+ }
+}
Added: 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 (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/LocalImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -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.Local;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ * @version $Revision: 61136 $
+ */
+public class LocalImpl implements Local
+{
+
+ public LocalImpl()
+ {
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return Local.class;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ManagementImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ManagementImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ManagementImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -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 java.lang.annotation.Annotation;
+
+import org.jboss.ejb3.annotation.Management;
+
+/**
+ * @version <tt>$Revision: 67430 $</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class ManagementImpl implements Management
+{
+ private Class value;
+
+ public ManagementImpl(Class value)
+ {
+ this.value = value;
+ }
+
+ public void setObjectName(Class value)
+ {
+ this.value = value;
+ }
+
+ public Class value()
+ {
+ return value;
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return Management.class;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/MessagePropertiesImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/MessagePropertiesImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/MessagePropertiesImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,102 @@
+/*
+ * 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.io.Serializable;
+import java.lang.annotation.Annotation;
+
+import org.jboss.ejb3.annotation.DeliveryMode;
+import org.jboss.ejb3.annotation.MessageProperties;
+
+/**
+ * comment
+ *
+ * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
+ */
+public class MessagePropertiesImpl implements MessageProperties, Serializable
+{
+ private static final long serialVersionUID = 4630480271844522009L;
+
+ private DeliveryMode deliveryMode = DeliveryMode.PERSISTENT;
+ private int ttl = 0;
+ private int priority = 4;
+ private Class interfac;
+
+ public MessagePropertiesImpl(DeliveryMode deliveryMode, int ttl, int priority)
+ {
+ this.deliveryMode = deliveryMode;
+ this.ttl = ttl;
+ this.priority = priority;
+ }
+
+ public MessagePropertiesImpl(MessageProperties props)
+ {
+ deliveryMode = props.delivery();
+ ttl = props.timeToLive();
+ priority = props.priority();
+ }
+
+ public void setDelivery(DeliveryMode mode)
+ {
+ this.deliveryMode = mode;
+ }
+
+ public void setPriority(int priority)
+ {
+ this.priority = priority;
+ }
+
+ public MessagePropertiesImpl()
+ {
+
+ }
+
+ public DeliveryMode delivery()
+ {
+ return deliveryMode;
+ }
+
+ public int timeToLive()
+ {
+ return ttl;
+ }
+
+ public int priority()
+ {
+ return priority;
+ }
+
+ public Class getInterface()
+ {
+ return interfac;
+ }
+
+ public void setInterface(Class interfac)
+ {
+ this.interfac = interfac;
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return MessageProperties.class;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PersistenceManagerImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PersistenceManagerImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PersistenceManagerImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -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 java.lang.annotation.Annotation;
+
+import org.jboss.ejb3.annotation.PersistenceManager;
+import org.jboss.ejb3.annotation.defaults.PersistenceManagerDefaults;
+
+/**
+ * @version <tt>$Revision: 61136 $</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class PersistenceManagerImpl implements PersistenceManager
+{
+ private String value = PersistenceManagerDefaults.PERSISTENCE_MANAGER_IMPLEMENTATION_STATEFUL_SESSION_FILE;
+
+ public PersistenceManagerImpl()
+ {
+ }
+
+ public String value()
+ {
+ return value;
+ }
+
+ public void setValue(String value)
+ {
+ this.value = value;
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return PersistenceManager.class;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PoolImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PoolImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/PoolImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,87 @@
+/*
+ * 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.Pool;
+
+/**
+ * @version <tt>$Revision: 67508 $</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class PoolImpl implements Pool
+{
+ public String value;
+ public int maxSize = 30;
+ public long timeout = Long.MAX_VALUE;
+
+ public PoolImpl()
+ {
+ }
+
+ public String value()
+ {
+ return value;
+ }
+
+ public void setValue(String 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 Pool.class;
+ }
+
+ public String toString()
+ {
+ StringBuffer sb = new StringBuffer(100);
+ sb.append("[PoolFactory name:");
+ sb.append("value=").append(value);
+ sb.append(", maxSize=").append(maxSize);
+ sb.append(", timeout=").append(timeout);
+ sb.append("]");
+ return sb.toString();
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteBindingImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteBindingImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteBindingImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,138 @@
+/*
+ * 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.RemoteBinding;
+import org.jboss.ejb3.annotation.defaults.RemoteBindingDefaults;
+import org.jboss.ejb3.util.Debugger;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
+ * @version $Revision: 67517 $
+ */
+public class RemoteBindingImpl implements RemoteBinding
+{
+ private String jndi;
+ private String stack;
+ private String bindUrl;
+ private String proxyFactory;
+
+ private StackTraceElement constructionPoint;
+
+ public RemoteBindingImpl()
+ {
+ jndi = "";
+ stack = "";
+ bindUrl = "";
+ proxyFactory = RemoteBindingDefaults.PROXY_FACTORY_DEFAULT;
+
+ this.constructionPoint = Debugger.constructionPoint();
+ }
+
+ public RemoteBindingImpl(String jndi, String stack, String bindUrl, String proxyFactory)
+ {
+ this.jndi = jndi;
+ this.stack = stack;
+ this.bindUrl = bindUrl;
+ this.proxyFactory = proxyFactory;
+
+ this.constructionPoint = Debugger.constructionPoint();
+ }
+
+ public void setStack(String stack)
+ {
+ this.stack = stack;
+ }
+
+ public void setFactory(String factory)
+ {
+ this.proxyFactory = factory;
+ }
+
+ public void setJndiBinding(String jndi)
+ {
+ this.jndi = jndi;
+ }
+
+ public void setBindUrl(String bindUrl)
+ {
+ this.bindUrl = bindUrl;
+ }
+
+ public String jndiBinding()
+ {
+ return jndi;
+ }
+
+ public String interceptorStack()
+ {
+ return stack;
+ }
+
+ public String clientBindUrl()
+ {
+ return bindUrl;
+ }
+
+ public String factory()
+ {
+ return proxyFactory;
+ }
+
+ public void merge(RemoteBinding annotation)
+ {
+ if (jndi.length() == 0)
+ jndi = annotation.jndiBinding();
+
+ if (stack.length() == 0)
+ stack = annotation.interceptorStack();
+
+ if (bindUrl.length() == 0)
+ bindUrl = annotation.clientBindUrl();
+
+ if (proxyFactory.equals(RemoteBindingDefaults.PROXY_FACTORY_DEFAULT))
+ proxyFactory = annotation.factory();
+
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return RemoteBinding.class;
+ }
+
+ public String toString()
+ {
+ StringBuffer sb = new StringBuffer(100);
+ sb.append("[RemoteBindingImpl:");
+ sb.append(", jndi=" + jndi);
+ sb.append(", stack=" + stack);
+ sb.append(", bindUrl=" + bindUrl);
+ sb.append(", proxyFactory=" + proxyFactory);
+ sb.append(", constructionPoint=" + constructionPoint);
+ sb.append(']');
+ return sb.toString();
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteBindingsImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteBindingsImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteBindingsImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,59 @@
+/*
+ * 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.List;
+
+import org.jboss.ejb3.annotation.RemoteBinding;
+import org.jboss.ejb3.annotation.RemoteBindings;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
+ * @version $Revision: 67430 $
+ */
+public class RemoteBindingsImpl implements RemoteBindings
+{
+ private RemoteBinding[] bindings;
+
+ public RemoteBindingsImpl(RemoteBinding[] bindings)
+ {
+ this.bindings = bindings;
+ }
+
+ public RemoteBindingsImpl(List bindings)
+ {
+ this.bindings = (RemoteBinding[])bindings.toArray(new RemoteBinding[bindings.size()]);
+ }
+
+ public RemoteBinding[] value()
+ {
+ return bindings;
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return RemoteBindings.class;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteHomeBindingImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteHomeBindingImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteHomeBindingImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,70 @@
+/*
+ * 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.RemoteHomeBinding;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class RemoteHomeBindingImpl implements RemoteHomeBinding
+{
+ private String jndi;
+
+ public RemoteHomeBindingImpl()
+ {
+ jndi = "";
+ }
+
+ public RemoteHomeBindingImpl(String jndi)
+ {
+ this.jndi = jndi;
+ }
+
+ public void setJndiBinding(String jndi)
+ {
+ this.jndi = jndi;
+ }
+
+ public String jndiBinding()
+ {
+ return jndi;
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return RemoteHomeBinding.class;
+ }
+
+ public String toString()
+ {
+ StringBuffer sb = new StringBuffer(100);
+ sb.append("[RemoteHomeBindingImpl:");
+ sb.append(", jndi=" + jndi);
+ sb.append(']');
+ return sb.toString();
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteHomeImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteHomeImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RemoteHomeImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,50 @@
+/*
+ * 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.RemoteHome;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
+ * @version $Revision: 66558 $
+ */
+public class RemoteHomeImpl implements RemoteHome
+{
+ private Class<?> value;
+
+ public RemoteHomeImpl(Class<?> value)
+ {
+ this.value = value;
+ }
+
+ public Class<?> value()
+ {
+ return value;
+ }
+
+ public Class<RemoteHome> annotationType()
+ {
+ return RemoteHome.class;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ResourceAdapterImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ResourceAdapterImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ResourceAdapterImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,50 @@
+/*
+ * 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.ResourceAdapter;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
+ * @version $Revision: 61136 $
+ */
+public class ResourceAdapterImpl implements ResourceAdapter
+{
+ private String adapter;
+
+ public ResourceAdapterImpl(String adapter)
+ {
+ this.adapter = adapter;
+ }
+
+ public String value() { return adapter; }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return ResourceAdapter.class;
+ }
+
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/SerializedConcurrentAccessImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/SerializedConcurrentAccessImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/SerializedConcurrentAccessImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,43 @@
+/*
+ * 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.SerializedConcurrentAccess;
+
+
+/**
+ * @version <tt>$Revision: 61136 $</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;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ServiceImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ServiceImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ServiceImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,87 @@
+/*
+ * 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.Service;
+
+
+/**
+ * @version <tt>$Revision: 67430 $</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class ServiceImpl implements Service
+{
+ private String objectName = "";
+ private String name = "";
+ private String xmbean = "";
+
+ public ServiceImpl(Service service)
+ {
+ if (service != null)
+ {
+ objectName = service.objectName();
+ name = service.name();
+ }
+ }
+
+ public ServiceImpl(String objectName)
+ {
+ this.objectName = objectName;
+ }
+
+ public void setObjectName(String objectName)
+ {
+ this.objectName = objectName;
+ }
+
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ public String objectName()
+ {
+ return objectName;
+ }
+
+ public String name()
+ {
+ return name;
+ }
+
+ public void setXMBean(String xmbean)
+ {
+ this.xmbean = xmbean;
+ }
+
+ public String xmbean()
+ {
+ return xmbean;
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return Service.class;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/TransactionTimeoutImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/TransactionTimeoutImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/TransactionTimeoutImpl.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,60 @@
+/*
+ * 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.TransactionTimeout;
+
+/**
+ * @version <tt>$Revision: 61136 $</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class TransactionTimeoutImpl implements TransactionTimeout
+{
+ private int value = 0;
+
+ public TransactionTimeoutImpl()
+ {
+
+ }
+
+ public TransactionTimeoutImpl(int value)
+ {
+ this.value = value;
+ }
+
+ public void setValue(int value)
+ {
+ this.value = value;
+ }
+
+ public int value()
+ {
+ return value;
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return TransactionTimeout.class;
+ }
+}
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/util/Debugger.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/util/Debugger.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/util/Debugger.java 2007-11-28 21:10:14 UTC (rev 67572)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, 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.ejb3.util;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: 64133 $
+ */
+public class Debugger
+{
+ public static StackTraceElement constructionPoint()
+ {
+ return new Exception().getStackTrace()[2];
+ }
+}
More information about the jboss-cvs-commits
mailing list