|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.imolinfo.jbi4corba.webservice.generator.ConsumerServiceClassesGenerator
public class ConsumerServiceClassesGenerator
This class generates (at deploy time) the code used by the jbi4corba in 'consumer' mode (at run time).
Constructor Summary | |
---|---|
ConsumerServiceClassesGenerator()
Default constructor. |
Method Summary | |
---|---|
List<String> |
copyIDLs(String classesDirName,
String wsdlDirName,
String remoteClassName)
Copy all the IDLs with care about (sub)path. |
protected WsdlInformation |
findOperationByMEP(org.apache.cxf.service.model.ServiceInfo serviceInfo,
QName portType,
WsdlInformation wi)
This method extracts asychronous and synchronous operation and store them in the WsdlInformation object. |
ServerCorbaClassesHolder |
generateConsumerCorbaClassesHolder(String workdir,
List<String> jars,
List<ClientCorbaClassesHolder> classes,
ProviderServiceClassesGenerator serviceGenerator,
JbiServiceDescriptor jbidesc)
This method is used to generate all the consumer code starting from the classes already generated with provider class generation API. |
ServerCorbaClassesHolder |
generateConsumerServiceClasses(String wsdlStringUrl,
String workdir,
String libDirName,
JbiServiceDescriptor jbiServiceDescriptor)
This method is used to generate all the consumer code starting from the WSDL of the Endpoint to consume. |
ServerCorbaClassesHolder |
generateConsumerServiceClassesDirect(String wsdlStringUrl,
String workdir,
List<String> jars,
JbiServiceDescriptor jbiServiceDescriptor)
This method is used to generate all the consumer code starting from the WSDL of the Endpoint to consume. |
ServerCorbaClassesHolder |
generateConsumerServiceClassesDirectFromIDL(File wsdlDirFile,
List<String> jars,
JbiServiceDescriptor jbiServiceDescriptor,
WsdlInformation wsdlInformation)
This method is used to generate all the consumer code starting from the IDL found inside the WSDL of the Endpoint to consume. |
ServerCorbaClassesHolder |
generateConsumerServiceClassesDirectFromWSDL(File wsdlDirFile,
List<String> jars)
This method is used to generate all the consumer code starting from the WSDL of the Endpoint to consume. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsumerServiceClassesGenerator()
Method Detail |
---|
public ServerCorbaClassesHolder generateConsumerServiceClasses(String wsdlStringUrl, String workdir, String libDirName, JbiServiceDescriptor jbiServiceDescriptor) throws ClassGenerationException
wsdlStringUrl
- Where the WSDL is located.workdir
- Where the method can generate the code.jars
- The jar needed at compile time and run time.All
- the references to the object generated.
ClassGenerationException
- When the code cannot be generated.public ServerCorbaClassesHolder generateConsumerServiceClassesDirect(String wsdlStringUrl, String workdir, List<String> jars, JbiServiceDescriptor jbiServiceDescriptor) throws ClassGenerationException
wsdlStringUrl
- Where the WSDL is located.workdir
- Where the method can generate the code.jars
- The jar needed at compile time and run time.All
- the references to the object generated.
ClassGenerationException
- When the code cannot be generated.public ServerCorbaClassesHolder generateConsumerServiceClassesDirectFromWSDL(File wsdlDirFile, List<String> jars) throws ClassGenerationException
wsdlDirFile
- Where the WSDL is located.workdir
- Where the method can generate the code.jars
- The jar needed at compile time and run time.All
- the references to the object generated.
ClassGenerationException
- When the code cannot be generated.public ServerCorbaClassesHolder generateConsumerServiceClassesDirectFromIDL(File wsdlDirFile, List<String> jars, JbiServiceDescriptor jbiServiceDescriptor, WsdlInformation wsdlInformation) throws ClassGenerationException
wsdlDirFile
- Dir where the WSDL is located.idlContent
- Content of the idl file extracted previously from WSDLworkdir
- Where the method can generate the code.jars
- The jar needed at compile time and run time.All
- the references to the object generated.
ClassGenerationException
- When the code cannot be generated.public ServerCorbaClassesHolder generateConsumerCorbaClassesHolder(String workdir, List<String> jars, List<ClientCorbaClassesHolder> classes, ProviderServiceClassesGenerator serviceGenerator, JbiServiceDescriptor jbidesc) throws ClassGenerationException
serviceGenerator
- ProviderServiceClassesGeneratorclasses
- ClientCorbaClassesHolderworkdir
- Where the method can generate the code.jars
- The jar needed at compile time and run time.
ClassGenerationException
- When the code cannot be generated.public List<String> copyIDLs(String classesDirName, String wsdlDirName, String remoteClassName) throws ClassGenerationException
classesDirName
- The directory where we can find the IDL files.wsdlDirName
- The directory where we copy he IDL files.remoteClassName
- The remote class name.
ClassGenerationException
- The class generation exceptionprotected WsdlInformation findOperationByMEP(org.apache.cxf.service.model.ServiceInfo serviceInfo, QName portType, WsdlInformation wi)
service
- The service to inspect.portType
- The portType associated to the operations.wi
- The WsdlInformation used.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |