net.openwings.connector
Interface ConnectorSourceGenerator
- public interface ConnectorSourceGenerator
This interface describes a tool that is used to generate source files
for the connector that
can be used for a given interface. Because connectors have abstracted out
the protocol specific code from two applications that want to communicate,
it becomes fairly trivial to write a generator that can generate code to
do the protocol specific calls. This makes it easier for a developer to
develop an application that can communicate with other applications, without
the developer having to learn all of the ins and outs of the protocol being
used.
|
Method Summary |
void |
generateConnector(java.lang.Class serviceInterface,
java.lang.String connectorName,
java.lang.String outputDirectory)
The proxies for the interfaces given to the constructor
will be created and saved
in the outputDirectory provided. |
generateConnector
public void generateConnector(java.lang.Class serviceInterface,
java.lang.String connectorName,
java.lang.String outputDirectory)
throws ConnectorGeneratorExceptions
- The proxies for the interfaces given to the constructor
will be created and saved
in the
outputDirectory provided.
- Parameters:
serviceInterface - interface for which the connector source code
will be generated. This must be a valid service interface according
to the standards outlined in the Openwings Interface Specification.connectorName - desired class name for the connector.outputDirectory - directory in which to place source code files.
- Throws:
ConnectorGeneratorExceptions - thrown for all of the errors
that occurred during generation