public class JavahAdapterFactory extends Object
Constructor and Description |
---|
JavahAdapterFactory() |
Modifier and Type | Method and Description |
---|---|
static JavahAdapter |
getAdapter(String choice,
ProjectComponent log)
Creates the JavahAdapter based on the user choice and
potentially the VM vendor.
|
static JavahAdapter |
getAdapter(String choice,
ProjectComponent log,
Path classpath)
Creates the JavahAdapter based on the user choice and
potentially the VM vendor.
|
static String |
getDefault()
Determines the default choice of adapter based on the VM
vendor.
|
public static JavahAdapter getAdapter(String choice, ProjectComponent log) throws BuildException
choice
- the user choice (if any).log
- a ProjectComponent instance used to access Ant's
logging system.BuildException
- if there is an error.public static JavahAdapter getAdapter(String choice, ProjectComponent log, Path classpath) throws BuildException
choice
- the user choice (if any).log
- a ProjectComponent instance used to access Ant's
logging system.classpath
- the classpath to use when looking up an
adapter classBuildException
- if there is an error.public static String getDefault()