1. /*
  2. * Copyright 2002,2004 The Apache Software Foundation
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. *
  16. */
  17. package org.apache.tools.ant.taskdefs.optional.j2ee;
  18. import org.apache.tools.ant.BuildException;
  19. /**
  20. * An interface for vendor-specific "hot" deployment tools.
  21. *
  22. *
  23. * @see org.apache.tools.ant.taskdefs.optional.j2ee.AbstractHotDeploymentTool
  24. * @see org.apache.tools.ant.taskdefs.optional.j2ee.ServerDeploy
  25. */
  26. public interface HotDeploymentTool {
  27. /** The delete action String **/
  28. public static final String ACTION_DELETE = "delete";
  29. /** The deploy action String **/
  30. public static final String ACTION_DEPLOY = "deploy";
  31. /** The list action String **/
  32. public static final String ACTION_LIST = "list";
  33. /** The undeploy action String **/
  34. public static final String ACTION_UNDEPLOY = "undeploy";
  35. /** The update action String **/
  36. public static final String ACTION_UPDATE = "update";
  37. /**
  38. * Validates the passed in attributes.
  39. * @exception org.apache.tools.ant.BuildException if the attributes are invalid or incomplete.
  40. */
  41. public void validateAttributes() throws BuildException;
  42. /**
  43. * Perform the actual deployment.
  44. * @exception org.apache.tools.ant.BuildException if the attributes are invalid or incomplete.
  45. */
  46. public void deploy() throws BuildException;
  47. /**
  48. * Sets the parent task.
  49. * @param task A ServerDeploy object representing the parent task.
  50. */
  51. public void setTask(ServerDeploy task);
  52. }