[jbpm-commits] JBoss JBPM SVN: r3164 - projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Dec 2 10:41:16 EST 2008
Author: thomas.diesler at jboss.com
Date: 2008-12-02 10:41:16 -0500 (Tue, 02 Dec 2008)
New Revision: 3164
Added:
projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/DeploymentService.java
Log:
Use interfaces for services
Added: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/DeploymentService.java
===================================================================
--- projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/DeploymentService.java (rev 0)
+++ projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/DeploymentService.java 2008-12-02 15:41:16 UTC (rev 3164)
@@ -0,0 +1,53 @@
+/*
+ * 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;
+
+//$Id$
+
+import java.net.URL;
+
+import org.jboss.bpm.api.deployment.Deployment;
+import org.jboss.bpm.api.model.ProcessDefinition;
+
+/**
+ * The DeploymentService creates, deployes and undeployes ProcessDefinitions.
+ *
+ * @author thomas.diesler at jboss.com
+ * @since 25-Sep-2008
+ */
+public interface DeploymentService
+{
+ /**
+ * Create a Deployment from the given URL
+ */
+ Deployment createDeployment(URL depURL);
+
+ /**
+ * Deploy a ProcessDefinition to the ProcessDefinitionService.
+ */
+ ProcessDefinition deploy(Deployment deployment);
+
+ /**
+ * Undeploy a ProcessDefinition from the ProcessDefinitionService.
+ */
+ boolean undeploy(Deployment dep);
+}
\ No newline at end of file
Property changes on: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/DeploymentService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
More information about the jbpm-commits
mailing list