Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.modeler.ant
Class ServiceTask  view ServiceTask download ServiceTask.java

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.commons.modeler.ant.ServiceTask

public class ServiceTask
extends org.apache.tools.ant.Task

Group a set of mbeans in a service, and perform actions on it.


Field Summary
(package private)  java.lang.String action
           
private static org.apache.commons.logging.Log log
           
(package private)  java.util.List mbeans
           
(package private)  java.lang.String refId
           
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
ServiceTask()
           
 
Method Summary
 void addMbean(MLETTask mbean)
           
 void execute()
          Called by the project to let the task do its work.
 java.util.List getMbeans()
           
 void setAction(java.lang.String action)
          Set action to be executed on the mbean collection.
 void setRefId(java.lang.String ref)
          Perform the action on a previously declared service
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log

mbeans

java.util.List mbeans

action

java.lang.String action

refId

java.lang.String refId
Constructor Detail

ServiceTask

public ServiceTask()
Method Detail

addMbean

public void addMbean(MLETTask mbean)

getMbeans

public java.util.List getMbeans()

setAction

public void setAction(java.lang.String action)
Set action to be executed on the mbean collection. If null - we'll perform init and start.


setRefId

public void setRefId(java.lang.String ref)
Perform the action on a previously declared service


execute

public void execute()
             throws org.apache.tools.ant.BuildException
Description copied from class: org.apache.tools.ant.Task
Called by the project to let the task do its work. This method may be called more than once, if the task is invoked more than once. For example, if target1 and target2 both depend on target3, then running "ant target1 target2" will run all tasks in target3 twice.