[jboss-svn-commits] JBoss Common SVN: r4169 - invokablecontainer/trunk/api/src/main/java/org/jboss/invokable.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Mar 11 09:42:02 EST 2010


Author: david.lloyd at jboss.com
Date: 2010-03-11 09:42:01 -0500 (Thu, 11 Mar 2010)
New Revision: 4169

Added:
   invokablecontainer/trunk/api/src/main/java/org/jboss/invokable/Keys.java
Log:
Common invocation keys with a couple examples

Added: invokablecontainer/trunk/api/src/main/java/org/jboss/invokable/Keys.java
===================================================================
--- invokablecontainer/trunk/api/src/main/java/org/jboss/invokable/Keys.java	                        (rev 0)
+++ invokablecontainer/trunk/api/src/main/java/org/jboss/invokable/Keys.java	2010-03-11 14:42:01 UTC (rev 4169)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.invokable;
+
+/**
+ * Common invocation context keys.
+ *
+ * @author <a href="mailto:david.lloyd at redhat.com">David M. Lloyd</a>
+ */
+public enum Keys {
+
+    /**
+     * The security principal associated with the invocation.  Should yield a value
+     * of type {@link java.security.Principal}.
+     */
+    PRINCIPAL,
+    /**
+     * The transaction associated with this invocation.  Should yield a {@link javax.transaction.Transaction} (?).
+     */
+    TRANSACTION,
+}



More information about the jboss-svn-commits mailing list