com.sun.tools.ws.ant
Class WrapperTask

java.lang.Object
  extended by Task
      extended by com.sun.istack.tools.ProtectedTask
          extended by com.sun.tools.ws.ant.WrapperTask
Direct Known Subclasses:
WsGen, WsImport

public abstract class WrapperTask
extends ProtectedTask

Wrapper task to launch real implementations of the task in a classloader that can work even in JavaSE 6.

Author:
Kohsuke Kawaguchi

Constructor Summary
WrapperTask()
           
 
Method Summary
protected  ClassLoader createClassLoader()
          Creates a protective class loader that will host the actual task.
protected  String getCoreClassName()
          Returns the name of the class that extends Task.
 void setDynamicAttribute(String name, String value)
           
 
Methods inherited from class com.sun.istack.tools.ProtectedTask
createDynamicElement, execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperTask

public WrapperTask()
Method Detail

getCoreClassName

protected String getCoreClassName()
Description copied from class: ProtectedTask
Returns the name of the class that extends Task. This class will be loaded int the protected classloader.

Specified by:
getCoreClassName in class ProtectedTask

setDynamicAttribute

public void setDynamicAttribute(String name,
                                String value)
                         throws BuildException
Overrides:
setDynamicAttribute in class ProtectedTask
Throws:
BuildException

createClassLoader

protected ClassLoader createClassLoader()
                                 throws ClassNotFoundException,
                                        IOException
Description copied from class: ProtectedTask
Creates a protective class loader that will host the actual task.

Specified by:
createClassLoader in class ProtectedTask
Throws:
ClassNotFoundException
IOException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.