[jbpm-commits] JBoss JBPM SVN: r3167 - in projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api: service and 1 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Dec 2 12:26:20 EST 2008


Author: thomas.diesler at jboss.com
Date: 2008-12-02 12:26:20 -0500 (Tue, 02 Dec 2008)
New Revision: 3167

Added:
   projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/runtime/ExecutionContext.java
   projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/ExecutionContextService.java
   projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/internal/AbstractExecutionContextService.java
Log:
Add ExecutionContextService

Added: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/runtime/ExecutionContext.java
===================================================================
--- projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/runtime/ExecutionContext.java	                        (rev 0)
+++ projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/runtime/ExecutionContext.java	2008-12-02 17:26:20 UTC (rev 3167)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.api.runtime;
+
+//$Id$
+
+
+/**
+ * The ExecutionContext is a container of arbitrary context information that needs
+ * to be associated with a client invocation. 
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 02-Dec-2008
+ */
+public interface ExecutionContext extends Attachments
+{
+  /**
+   * Close the execution context
+   */
+  void close();
+}
\ No newline at end of file


Property changes on: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/runtime/ExecutionContext.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/ExecutionContextService.java
===================================================================
--- projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/ExecutionContextService.java	                        (rev 0)
+++ projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/ExecutionContextService.java	2008-12-02 17:26:20 UTC (rev 3167)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.api.service;
+
+import org.jboss.bpm.api.runtime.ExecutionContext;
+
+//$Id$
+
+/**
+ * The ExecutionContextService is the entry point to create or get an ExecutionContext.
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 25-Sep-2008
+ */
+public interface ExecutionContextService
+{
+  /**
+   * Create a new ExecutionContext
+   */
+  ExecutionContext createExecutionContext();
+
+  /**
+   * Get the current ExecutionContext association
+   * @param create If true, create a new ExecutionContext if there is no context associated
+   */
+  ExecutionContext getExecutionContext(boolean create);
+}
\ No newline at end of file


Property changes on: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/ExecutionContextService.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/internal/AbstractExecutionContextService.java
===================================================================
--- projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/internal/AbstractExecutionContextService.java	                        (rev 0)
+++ projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/internal/AbstractExecutionContextService.java	2008-12-02 17:26:20 UTC (rev 3167)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.api.service.internal;
+
+//$Id$
+
+import org.jboss.bpm.api.service.ExecutionContextService;
+
+
+/**
+ * The ExecutionContextService is the entry point to create or get an ExecutionContext.
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 02-Dec-2008
+ */
+public abstract class AbstractExecutionContextService extends AbstractService implements ExecutionContextService
+{
+}
\ No newline at end of file


Property changes on: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/internal/AbstractExecutionContextService.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF




More information about the jbpm-commits mailing list