[jboss-cvs] JBossAS SVN: r106155 - in projects/ejb3/tags: jboss-ejb3-timerservice-naming-1.0.0-alpha-2 and 2 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jun 18 08:35:41 EDT 2010


Author: jaikiran
Date: 2010-06-18 08:35:40 -0400 (Fri, 18 Jun 2010)
New Revision: 106155

Added:
   projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/
   projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/pom.xml
   projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/main/java/org/jboss/ejb3/timerservice/naming/TimerServiceObjectFactory.java
   projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/test/java/org/jboss/ejb3/timerservice/naming/test/binder/DummyBeanManager.java
   projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/test/java/org/jboss/ejb3/timerservice/naming/test/binder/DummyEJBContext.java
Removed:
   projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/pom.xml
   projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/main/java/org/jboss/ejb3/timerservice/naming/TimerServiceObjectFactory.java
   projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/test/java/org/jboss/ejb3/timerservice/naming/test/binder/DummyEJBContext.java
Log:
[maven-release-plugin]  copy for tag jboss-ejb3-timerservice-naming-1.0.0-alpha-2

Copied: projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2 (from rev 106024, projects/ejb3/trunk/timerservice-naming)

Deleted: projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/pom.xml
===================================================================
--- projects/ejb3/trunk/timerservice-naming/pom.xml	2010-06-14 06:35:03 UTC (rev 106024)
+++ projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/pom.xml	2010-06-18 12:35:40 UTC (rev 106155)
@@ -1,135 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
-
-	<parent>
-		<groupId>org.jboss</groupId>
-		<artifactId>jboss-parent</artifactId>
-		<version>5</version>
-	</parent>
-
-	<!-- Maven POM Model Version -->
-	<modelVersion>4.0.0</modelVersion>
-
-	<!-- Artifact Information -->
-	<groupId>org.jboss.ejb3</groupId>
-	<artifactId>jboss-ejb3-timerservice-naming</artifactId>
-	<version>1.0.0-SNAPSHOT</version>
-	<packaging>jar</packaging>
-
-	<name>JBoss EJB3 TimerService naming</name>
-	<description>
-		Responsible for setting up TimerService in ENC of EJB3 containers
-	</description>
-	<url>http://labs.jboss.com/jbossejb3/</url>
-
-	<!-- SCM -->
-	<scm>
-		<connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/trunk/timerservice-naming</connection>
-		<developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/trunk/timerservice-naming</developerConnection>
-		<url>http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/trunk/timerservice-naming</url>
-	</scm>
-
-
-
-
-	<properties>
-		<version.junit>4.7</version.junit>
-		<version.jboss.logging>2.1.1.GA</version.jboss.logging>
-		<version.jboss.common.core>2.2.14.GA</version.jboss.common.core>
-		<version.jboss.ejb3.context>0.1.1</version.jboss.ejb3.context>
-	</properties>
-
-	<build>
-		<plugins>
-			<plugin>
-				<artifactId>maven-compiler-plugin</artifactId>
-				<configuration>
-					<source>1.6</source>
-					<target>1.6</target>
-				</configuration>
-			</plugin>
-
-			<plugin>
-				<artifactId>maven-enforcer-plugin</artifactId>
-				<executions>
-					<execution>
-						<id>enforce-jdk6</id>
-						<goals>
-							<goal>enforce</goal>
-						</goals>
-						<configuration>
-							<rules>
-								<requireJavaVersion>
-									<version>[1.6,)</version>
-								</requireJavaVersion>
-							</rules>
-						</configuration>
-					</execution>
-				</executions>
-			</plugin>
-
-			<!-- Maven Release Plugin Configuration -->
-			<plugin>
-				<groupId>org.apache.maven.plugins</groupId>
-				<artifactId>maven-release-plugin</artifactId>
-				<configuration>
-					<tagBase>
-						https://svn.jboss.org/repos/jbossas/projects/ejb3/tags
-			          </tagBase>
-				</configuration>
-			</plugin>
-
-		</plugins>
-	</build>
-
-	<dependencies>
-
-		<dependency>
-			<groupId>org.jboss.spec.javax.ejb</groupId>
-			<artifactId>jboss-ejb-api_3.1_spec</artifactId>
-			<version>1.0.0.Beta2</version>
-		</dependency>
-
-		<dependency>
-			<groupId>org.jboss.spec.javax.interceptor</groupId>
-			<artifactId>jboss-interceptors-api_1.1_spec</artifactId>
-			<version>1.0.0.Beta1</version>
-		</dependency>
-
-
-		<dependency>
-			<groupId>org.jboss.logging</groupId>
-			<artifactId>jboss-logging-spi</artifactId>
-			<version>${version.jboss.logging}</version>
-		</dependency>
-
-		<dependency>
-			<groupId>org.jboss.ejb3.context</groupId>
-			<artifactId>jboss-ejb3-context-base</artifactId>
-			<version>${version.jboss.ejb3.context}</version>
-		</dependency>
-
-		<dependency>
-			<groupId>org.jboss</groupId>
-			<artifactId>jboss-common-core</artifactId>
-			<version>${version.jboss.common.core}</version>
-		</dependency>
-
-		<!--  Test dependencies -->
-		<dependency>
-			<groupId>junit</groupId>
-			<artifactId>junit</artifactId>
-			<scope>test</scope>
-			<version>${version.junit}</version>
-		</dependency>
-
-		<dependency>
-			<groupId>org.jboss.naming</groupId>
-			<artifactId>jnpserver</artifactId>
-			<version>5.0.5.Final</version>
-			<scope>test</scope>
-		</dependency>
-
-	</dependencies>
-
-</project>

Copied: projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/pom.xml (from rev 106154, projects/ejb3/trunk/timerservice-naming/pom.xml)
===================================================================
--- projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/pom.xml	                        (rev 0)
+++ projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/pom.xml	2010-06-18 12:35:40 UTC (rev 106155)
@@ -0,0 +1,143 @@
+<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">
+
+
+	<!-- Maven POM Model Version -->
+	<modelVersion>4.0.0</modelVersion>
+
+	<!-- Artifact Information -->
+	<groupId>org.jboss.ejb3</groupId>
+	<artifactId>jboss-ejb3-timerservice-naming</artifactId>
+	<version>1.0.0-alpha-2</version>
+	<packaging>jar</packaging>
+
+	<name>JBoss EJB3 TimerService naming</name>
+	<description>
+		Responsible for setting up TimerService in ENC of EJB3 containers
+	</description>
+	<url>http://labs.jboss.com/jbossejb3/</url>
+
+	<!-- SCM -->
+	<scm>
+		<connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2</connection>
+		<developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2</developerConnection>
+		<url>http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2</url>
+	</scm>
+
+	<distributionManagement>
+			<repository>
+			  <id>jboss-releases-repository</id>
+			  <name>JBoss Releases Repository</name>
+			  <url>https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/</url>
+			</repository>
+
+			<snapshotRepository>
+				<id>jboss-snapshots-repository</id>
+				<name>JBoss Snapshots Repository</name>
+				<url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
+			</snapshotRepository>			
+	</distributionManagement>  
+
+
+
+
+	<properties>
+		<version.junit>4.7</version.junit>
+		<version.jboss.logging>2.1.1.GA</version.jboss.logging>
+		<version.jboss.common.core>2.2.14.GA</version.jboss.common.core>
+		<version.jboss.ejb3.context>0.1.1</version.jboss.ejb3.context>
+	</properties>
+
+	<build>
+		<plugins>
+			<plugin>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<configuration>
+					<source>1.6</source>
+					<target>1.6</target>
+				</configuration>
+			</plugin>
+
+			<plugin>
+				<artifactId>maven-enforcer-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>enforce-jdk6</id>
+						<goals>
+							<goal>enforce</goal>
+						</goals>
+						<configuration>
+							<rules>
+								<requireJavaVersion>
+									<version>[1.6,)</version>
+								</requireJavaVersion>
+							</rules>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+
+			<!-- Maven Release Plugin Configuration -->
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-release-plugin</artifactId>
+				<configuration>
+					<tagBase>
+						https://svn.jboss.org/repos/jbossas/projects/ejb3/tags
+			          </tagBase>
+				</configuration>
+			</plugin>
+
+		</plugins>
+	</build>
+
+	<dependencies>
+
+		<dependency>
+			<groupId>org.jboss.spec.javax.ejb</groupId>
+			<artifactId>jboss-ejb-api_3.1_spec</artifactId>
+			<version>1.0.0.Beta2</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.jboss.spec.javax.interceptor</groupId>
+			<artifactId>jboss-interceptors-api_1.1_spec</artifactId>
+			<version>1.0.0.Beta1</version>
+		</dependency>
+
+
+		<dependency>
+			<groupId>org.jboss.logging</groupId>
+			<artifactId>jboss-logging-spi</artifactId>
+			<version>${version.jboss.logging}</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.jboss.ejb3.context</groupId>
+			<artifactId>jboss-ejb3-context-base</artifactId>
+			<version>${version.jboss.ejb3.context}</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.jboss</groupId>
+			<artifactId>jboss-common-core</artifactId>
+			<version>${version.jboss.common.core}</version>
+		</dependency>
+
+		<!--  Test dependencies -->
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<scope>test</scope>
+			<version>${version.junit}</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.jboss.naming</groupId>
+			<artifactId>jnpserver</artifactId>
+			<version>5.0.5.Final</version>
+			<scope>test</scope>
+		</dependency>
+
+	</dependencies>
+
+</project>

Deleted: projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/main/java/org/jboss/ejb3/timerservice/naming/TimerServiceObjectFactory.java
===================================================================
--- projects/ejb3/trunk/timerservice-naming/src/main/java/org/jboss/ejb3/timerservice/naming/TimerServiceObjectFactory.java	2010-06-14 06:35:03 UTC (rev 106024)
+++ projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/main/java/org/jboss/ejb3/timerservice/naming/TimerServiceObjectFactory.java	2010-06-18 12:35:40 UTC (rev 106155)
@@ -1,58 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ejb3.timerservice.naming;
-
-import java.util.Hashtable;
-
-import javax.ejb.EJBContext;
-import javax.ejb.TimerService;
-import javax.naming.Context;
-import javax.naming.Name;
-import javax.naming.spi.ObjectFactory;
-
-import org.jboss.ejb3.context.CurrentInvocationContext;
-
-
-/**
- * An implementation of {@link ObjectFactory} which is responsible for returing
- * a {@link TimerService} for the current {@link EJBContext}
- *
- * @author Jaikiran Pai
- * @version $Revision: $
- */
-public class TimerServiceObjectFactory implements ObjectFactory
-{
-
-   /**
-    * Returns {@link TimerService} for the current {@link EJBContext}
-    */
-   @Override
-   public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment)
-         throws Exception
-   {
-      // get hold of EJBContext
-      EJBContext currentEJBContext = CurrentInvocationContext.get().getEJBContext();
-      // and return the timerservice of that context
-      return currentEJBContext.getTimerService();
-   }
-
-}

Copied: projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/main/java/org/jboss/ejb3/timerservice/naming/TimerServiceObjectFactory.java (from rev 106151, projects/ejb3/trunk/timerservice-naming/src/main/java/org/jboss/ejb3/timerservice/naming/TimerServiceObjectFactory.java)
===================================================================
--- projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/main/java/org/jboss/ejb3/timerservice/naming/TimerServiceObjectFactory.java	                        (rev 0)
+++ projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/main/java/org/jboss/ejb3/timerservice/naming/TimerServiceObjectFactory.java	2010-06-18 12:35:40 UTC (rev 106155)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.timerservice.naming;
+
+import java.util.Hashtable;
+
+import javax.ejb.TimerService;
+import javax.naming.Context;
+import javax.naming.Name;
+import javax.naming.spi.ObjectFactory;
+
+import org.jboss.ejb3.context.CurrentInvocationContext;
+import org.jboss.ejb3.context.spi.BeanManager;
+import org.jboss.ejb3.context.spi.EJBContext;
+
+
+/**
+ * An implementation of {@link ObjectFactory} which is responsible for returing
+ * a {@link TimerService} for the current {@link EJBContext}
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class TimerServiceObjectFactory implements ObjectFactory
+{
+
+   /**
+    * Returns {@link TimerService} for the current {@link EJBContext}
+    */
+   @Override
+   public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment)
+         throws Exception
+   {
+      // get hold of EJBContext
+      EJBContext currentEJBContext = CurrentInvocationContext.get().getEJBContext();
+      // now get hold of the BeanManager from the EJBContext.
+      // Note that we could have directly used EJBContext.getTimerService(), but that
+      // won't work in all cases, because the EJBContext.getTimerService() is an user API
+      // and the spec mandates that this API throw an exception when invoked during injection.
+      // Internal implementation (like injectors) of EJB3 will require to get hold of the
+      // TimerService during injection (to actually do the injection). Hence we bypass the user
+      // API and instead use the BeanManager.getTimerService() which doesn't have a restriction
+      // on using it during injection.
+      BeanManager beanManager =  currentEJBContext.getManager();
+      // now finally get hold of the timerservice
+      return beanManager.getTimerService();
+   }
+
+}

Copied: projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/test/java/org/jboss/ejb3/timerservice/naming/test/binder/DummyBeanManager.java (from rev 106151, projects/ejb3/trunk/timerservice-naming/src/test/java/org/jboss/ejb3/timerservice/naming/test/binder/DummyBeanManager.java)
===================================================================
--- projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/test/java/org/jboss/ejb3/timerservice/naming/test/binder/DummyBeanManager.java	                        (rev 0)
+++ projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/test/java/org/jboss/ejb3/timerservice/naming/test/binder/DummyBeanManager.java	2010-06-18 12:35:40 UTC (rev 106155)
@@ -0,0 +1,96 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.timerservice.naming.test.binder;
+
+import java.security.Principal;
+
+import javax.ejb.EJBHome;
+import javax.ejb.EJBLocalHome;
+import javax.ejb.TimerService;
+import javax.transaction.UserTransaction;
+
+import org.jboss.ejb3.context.spi.BeanManager;
+
+/**
+ * DummyBeanManager
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class DummyBeanManager implements BeanManager
+{
+
+   @Override
+   public EJBHome getEJBHome() throws IllegalStateException
+   {
+      // TODO Auto-generated method stub
+      throw new RuntimeException("NYI");
+   }
+
+   @Override
+   public EJBLocalHome getEJBLocalHome() throws IllegalStateException
+   {
+      // TODO Auto-generated method stub
+      throw new RuntimeException("NYI");
+   }
+
+   @Override
+   public boolean getRollbackOnly() throws IllegalStateException
+   {
+      // TODO Auto-generated method stub
+      throw new RuntimeException("NYI");
+   }
+
+   @Override
+   public UserTransaction getUserTransaction() throws IllegalStateException
+   {
+      // TODO Auto-generated method stub
+      throw new RuntimeException("NYI");
+   }
+
+   @Override
+   public boolean isCallerInRole(Principal callerPrincipal, String roleName) throws IllegalStateException
+   {
+      // TODO Auto-generated method stub
+      throw new RuntimeException("NYI");
+   }
+
+   @Override
+   public Object lookup(String name) throws IllegalArgumentException
+   {
+      // TODO Auto-generated method stub
+      throw new RuntimeException("NYI");
+   }
+
+   @Override
+   public void setRollbackOnly() throws IllegalStateException
+   {
+      // TODO Auto-generated method stub
+      throw new RuntimeException("NYI");
+   }
+
+   @Override
+   public TimerService getTimerService() throws IllegalStateException
+   {
+      return new DummyTimerService();
+   }
+}

Deleted: projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/test/java/org/jboss/ejb3/timerservice/naming/test/binder/DummyEJBContext.java
===================================================================
--- projects/ejb3/trunk/timerservice-naming/src/test/java/org/jboss/ejb3/timerservice/naming/test/binder/DummyEJBContext.java	2010-06-14 06:35:03 UTC (rev 106024)
+++ projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/test/java/org/jboss/ejb3/timerservice/naming/test/binder/DummyEJBContext.java	2010-06-18 12:35:40 UTC (rev 106155)
@@ -1,149 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ejb3.timerservice.naming.test.binder;
-
-import java.security.Identity;
-import java.security.Principal;
-import java.util.Map;
-import java.util.Properties;
-
-import javax.ejb.EJBHome;
-import javax.ejb.EJBLocalHome;
-import javax.ejb.TimerService;
-import javax.transaction.UserTransaction;
-
-import org.jboss.ejb3.context.spi.BeanManager;
-
-/**
- * DummyEJBContext
- *
- * @author Jaikiran Pai
- * @version $Revision: $
- */
-public class DummyEJBContext implements org.jboss.ejb3.context.spi.EJBContext
-{
-
-   @Override
-   public Identity getCallerIdentity()
-   {
-      // TODO Auto-generated method stub
-      return null;
-   }
-
-   @Override
-   public Principal getCallerPrincipal()
-   {
-      // TODO Auto-generated method stub
-      return null;
-   }
-
-   @Override
-   public Map<String, Object> getContextData()
-   {
-      // TODO Auto-generated method stub
-      return null;
-   }
-
-   @Override
-   public EJBHome getEJBHome()
-   {
-      // TODO Auto-generated method stub
-      return null;
-   }
-
-   @Override
-   public EJBLocalHome getEJBLocalHome()
-   {
-      // TODO Auto-generated method stub
-      return null;
-   }
-
-   @Override
-   public Properties getEnvironment()
-   {
-      // TODO Auto-generated method stub
-      return null;
-   }
-
-   @Override
-   public boolean getRollbackOnly() throws IllegalStateException
-   {
-      // TODO Auto-generated method stub
-      return false;
-   }
-
-   @Override
-   public TimerService getTimerService() throws IllegalStateException
-   {
-      return new DummyTimerService();
-   }
-
-   @Override
-   public UserTransaction getUserTransaction() throws IllegalStateException
-   {
-      // TODO Auto-generated method stub
-      return null;
-   }
-
-   @Override
-   public boolean isCallerInRole(Identity role)
-   {
-      // TODO Auto-generated method stub
-      return false;
-   }
-
-   @Override
-   public boolean isCallerInRole(String roleName)
-   {
-      // TODO Auto-generated method stub
-      return false;
-   }
-
-   @Override
-   public Object lookup(String name) throws IllegalArgumentException
-   {
-      // TODO Auto-generated method stub
-      return null;
-   }
-
-   @Override
-   public void setRollbackOnly() throws IllegalStateException
-   {
-      // TODO Auto-generated method stub
-
-   }
-
-   @Override
-   public BeanManager getManager()
-   {
-      // TODO Auto-generated method stub
-      return null;
-   }
-
-   @Override
-   public Object getTarget()
-   {
-      // TODO Auto-generated method stub
-      return null;
-   }
-
-}

Copied: projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/test/java/org/jboss/ejb3/timerservice/naming/test/binder/DummyEJBContext.java (from rev 106151, projects/ejb3/trunk/timerservice-naming/src/test/java/org/jboss/ejb3/timerservice/naming/test/binder/DummyEJBContext.java)
===================================================================
--- projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/test/java/org/jboss/ejb3/timerservice/naming/test/binder/DummyEJBContext.java	                        (rev 0)
+++ projects/ejb3/tags/jboss-ejb3-timerservice-naming-1.0.0-alpha-2/src/test/java/org/jboss/ejb3/timerservice/naming/test/binder/DummyEJBContext.java	2010-06-18 12:35:40 UTC (rev 106155)
@@ -0,0 +1,148 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.timerservice.naming.test.binder;
+
+import java.security.Identity;
+import java.security.Principal;
+import java.util.Map;
+import java.util.Properties;
+
+import javax.ejb.EJBHome;
+import javax.ejb.EJBLocalHome;
+import javax.ejb.TimerService;
+import javax.transaction.UserTransaction;
+
+import org.jboss.ejb3.context.spi.BeanManager;
+
+/**
+ * DummyEJBContext
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class DummyEJBContext implements org.jboss.ejb3.context.spi.EJBContext
+{
+
+   @Override
+   public Identity getCallerIdentity()
+   {
+      // TODO Auto-generated method stub
+      return null;
+   }
+
+   @Override
+   public Principal getCallerPrincipal()
+   {
+      // TODO Auto-generated method stub
+      return null;
+   }
+
+   @Override
+   public Map<String, Object> getContextData()
+   {
+      // TODO Auto-generated method stub
+      return null;
+   }
+
+   @Override
+   public EJBHome getEJBHome()
+   {
+      // TODO Auto-generated method stub
+      return null;
+   }
+
+   @Override
+   public EJBLocalHome getEJBLocalHome()
+   {
+      // TODO Auto-generated method stub
+      return null;
+   }
+
+   @Override
+   public Properties getEnvironment()
+   {
+      // TODO Auto-generated method stub
+      return null;
+   }
+
+   @Override
+   public boolean getRollbackOnly() throws IllegalStateException
+   {
+      // TODO Auto-generated method stub
+      return false;
+   }
+
+   @Override
+   public TimerService getTimerService() throws IllegalStateException
+   {
+      return new DummyTimerService();
+   }
+
+   @Override
+   public UserTransaction getUserTransaction() throws IllegalStateException
+   {
+      // TODO Auto-generated method stub
+      return null;
+   }
+
+   @Override
+   public boolean isCallerInRole(Identity role)
+   {
+      // TODO Auto-generated method stub
+      return false;
+   }
+
+   @Override
+   public boolean isCallerInRole(String roleName)
+   {
+      // TODO Auto-generated method stub
+      return false;
+   }
+
+   @Override
+   public Object lookup(String name) throws IllegalArgumentException
+   {
+      // TODO Auto-generated method stub
+      return null;
+   }
+
+   @Override
+   public void setRollbackOnly() throws IllegalStateException
+   {
+      // TODO Auto-generated method stub
+
+   }
+
+   @Override
+   public BeanManager getManager()
+   {
+      return new DummyBeanManager();
+   }
+
+   @Override
+   public Object getTarget()
+   {
+      // TODO Auto-generated method stub
+      return null;
+   }
+
+}



More information about the jboss-cvs-commits mailing list