Openwings API Documentation (v1.1)

net.openwings.connector
Interface ConnectorSourceCompiler


public interface ConnectorSourceCompiler

This interface describes a tool that is used to compile the source of a generated connector

See Also:
ConnectorSourceGenerator

Method Summary
 void compileConnector(java.lang.String interfaceName, java.lang.String outputDirectory)
          This method compiles all of the classes needed by a connector that was previously generated.
 void compileConnector(java.lang.String interfaceName, java.lang.String outputDirectory, java.lang.String classpath)
          This method compiles all of the classes needed by a connector that was previously generated.
 void compileConnector(java.lang.String interfaceName, java.lang.String outputDirectory, java.lang.String classpath, java.lang.String sourceDirectory)
          This method compiles all of the classes needed by a connector that was previously generated.
 

Method Detail

compileConnector

public void compileConnector(java.lang.String interfaceName,
                             java.lang.String outputDirectory,
                             java.lang.String classpath,
                             java.lang.String sourceDirectory)
                      throws ConnectorCompilerExceptions
This method compiles all of the classes needed by a connector that was previously generated. This uses the classpath specified to compile against.

Parameters:
interfaceName - the name of the interface that the connector is for
outputDirectory - the directory where the classes are to be placed
classpath - the path to all of the dependencies of the connector.
sourceDirectory - the directory where the source being compiled is located.
Throws:
ConnectorCompilerExceptions - thrown if 1 or more errors occur while trying to compile the connector source.

compileConnector

public void compileConnector(java.lang.String interfaceName,
                             java.lang.String outputDirectory,
                             java.lang.String classpath)
                      throws ConnectorCompilerExceptions
This method compiles all of the classes needed by a connector that was previously generated. This uses the classpath specified to compile against.

Parameters:
interfaceName - the name of the interface that the connector is for
outputDirectory - the directory where the classes are to be placed
classpath - the path to all of the dependencies of the connector.
Throws:
ConnectorCompilerExceptions - thrown if 1 or more errors occur while trying to compile the connector source.

compileConnector

public void compileConnector(java.lang.String interfaceName,
                             java.lang.String outputDirectory)
                      throws ConnectorCompilerExceptions
This method compiles all of the classes needed by a connector that was previously generated. This uses some default classpath.

Parameters:
interfaceName - the name of the interface that the connector is for
outputDirectory - the directory where the classes are to be placed
Throws:
ConnectorCompilerExceptions - thrown if 1 or more errors occur while trying to compile the connector source.

Openwings API Documentation (v1.1)