org.apache.wsif.providers.jca.toolplugin
Interface FormatHandlerGenerator
- public interface FormatHandlerGenerator
This interface allows Resource Adapter to provide a code generation contribution to the tool
environment. The tooling delegates to the implementation of this interface the generation
of all format handlers for the particular encoding and style.
- Author:
- Hesham Fahmy , Piotr Przybylski , Harlod Gartner
Method Summary |
java.lang.Object |
createGenerationContext()
Creates a new context for format handler generation. |
java.util.Hashtable |
generate(java.lang.String generationPackage,
java.lang.String beanClass,
javax.wsdl.Definition aDefinition,
javax.wsdl.Binding aBinding,
java.lang.String anEncoding,
java.lang.String aStyle,
javax.xml.namespace.QName xsdQname,
int elementType,
java.lang.Object generationContext)
Generates a Custom Format Handler for a particular XSD Type or Element. |
XSD_TYPE
public static final int XSD_TYPE
- See Also:
- Constant Field Values
XSD_ELEMENT
public static final int XSD_ELEMENT
- See Also:
- Constant Field Values
generate
public java.util.Hashtable generate(java.lang.String generationPackage,
java.lang.String beanClass,
javax.wsdl.Definition aDefinition,
javax.wsdl.Binding aBinding,
java.lang.String anEncoding,
java.lang.String aStyle,
javax.xml.namespace.QName xsdQname,
int elementType,
java.lang.Object generationContext)
throws WSIFException
- Generates a Custom Format Handler for a particular XSD Type or Element.
- Returns:
- a
HashTable
that contains a set of java.io.InputStream
s. Each input stream contains the generated code for a particular
class generated by the format handler generator. The number of input streams returned depends on the number of classes that are generated by the format handler
generator. The keys of the HashTable must be the name of each class (unqualified) that is represented by its corresponding InputStream value. The class name keys
are unqualified because they must all be in the generationPackage
that is passed in as an input parameter.
- Throws:
org.apache.wsif.WSIFException
- thrown if an error occurs during format handler generation.
WSIFException
createGenerationContext
public java.lang.Object createGenerationContext()
- Creates a new context for format handler generation.
The context is an optional object that can be used by a FormatHandlerGenerator to assist in code generation, or in keeping track of
artifacts generated. The details, and implementation, of the object are specific to each FormatHandlerGenerator.
Tooling environments must call this method first, before invoking the FormatHandlerGenerator to generate code. The context that is returned must be used
by the tooling environment for all subsequent calls to the FormatHandlerGenerator.
- Returns:
- A new generation context.
Copyright ? 2002, 2006 Apache XML Project. All Rights Reserved.