|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.imolinfo.jbi4corba.webservice.generator.ProviderServiceClassesGenerator
public class ProviderServiceClassesGenerator
This class provides the 'IDL to WSDL' code generation.
| Field Summary | |
|---|---|
protected static CodeGenerationProperties |
codeGenerationProperties
The properties used to control the behavior during the code generation. |
| Constructor Summary | |
|---|---|
ProviderServiceClassesGenerator()
Empty Constructor. |
|
ProviderServiceClassesGenerator(CodeGenerationProperties prop)
Empty Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addEnumClass(String workdirsrc)
|
String |
createsPackageInfo(String namespace,
String packagePath,
String dirClasses)
Creates the pacakge-info.java file for the correct jaxb mapping. |
List<ClientCorbaClassesHolder> |
generateProviderServiceClasses(JbiServiceDescriptor serviceDescriptor,
String workdir,
List<String> jars,
String portTypeName)
|
List<ClientCorbaClassesHolder> |
generateProviderServiceClasses(JbiServiceDescriptor serviceDescriptor,
String workdir,
String libDirName,
String portTypeName)
This class is used to generate a service from a IDL file. |
List<ClientCorbaClassesHolder> |
generateProviderServiceClasses(List<JbiServiceDescriptor> serviceDescriptorList,
String workdir,
List<String> jars,
List<String> portTypeName)
This class is used to generate a service from a IDL file. |
List<ClientCorbaClassesHolder> |
generateProviderServiceClasses(List<JbiServiceDescriptor> serviceDescriptorList,
String workdir,
String libDirName,
List<String> portTypeName)
This class is used to generate a service from a IDL file. |
ChildFirstClassLoader |
getOriginalClassLoader()
|
URLClassLoader |
getUrlClassLoader()
|
protected boolean |
setOnewayPropertyOnTheMethodSignature(String onewayMethod,
List<MethodSignature> methodSignatureList)
This method searches the right signature and set to true the 'oneway' property. |
protected void |
updateOnewayMethodSignature(Map<String,List<String>> onewayMap,
Map<String,List<MethodSignature>> mapOperationsMethod)
This method is used to update the 'oneway' property of the method signature. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static CodeGenerationProperties codeGenerationProperties
| Constructor Detail |
|---|
public ProviderServiceClassesGenerator()
public ProviderServiceClassesGenerator(CodeGenerationProperties prop)
prop - This object contains all the configuration to perform the activities.| Method Detail |
|---|
public List<ClientCorbaClassesHolder> generateProviderServiceClasses(JbiServiceDescriptor serviceDescriptor,
String workdir,
String libDirName,
String portTypeName)
throws ClassGenerationException
serviceDescriptor - Used to estract 'idlFileNameDirectory'
and 'idlFileName'.workdir - The java source files and compiled files are placed
in 'workdir/src' and 'workdir/classes'libDirName - The directory where the method looks for the jars.
ClassGenerationException - The Class Generation Exception
public List<ClientCorbaClassesHolder> generateProviderServiceClasses(JbiServiceDescriptor serviceDescriptor,
String workdir,
List<String> jars,
String portTypeName)
throws ClassGenerationException
ClassGenerationException
public List<ClientCorbaClassesHolder> generateProviderServiceClasses(List<JbiServiceDescriptor> serviceDescriptorList,
String workdir,
String libDirName,
List<String> portTypeName)
throws ClassGenerationException
serviceDescriptor - Used to estract 'idlFileNameDirectory'
and 'idlFileName'.workdir - The java source files and compiled files are placed
in 'workdir/src' and 'workdir/classes'libDirName - The directory where the method looks for the jars.
ClassGenerationException - The Class Generation Exception
public List<ClientCorbaClassesHolder> generateProviderServiceClasses(List<JbiServiceDescriptor> serviceDescriptorList,
String workdir,
List<String> jars,
List<String> portTypeName)
throws ClassGenerationException
serviceDescriptor - Used to estract 'idlFileNameDirectory' and
'idlFileName'.workdir - The java source files and compiled files are placed in
'workdir/src' and 'workdir/classes'jars - The list of jars used to generate the classes.portTypeName - the porttype name (for the wsdl annotations). Can be null (in this case, the class name is used).
ClassGenerationException - The class generation exception
The portTypeName is necessary for the generation of the classes
public String createsPackageInfo(String namespace,
String packagePath,
String dirClasses)
throws ClassGenerationException
namespace - packagePath - dirClasses -
ClassGenerationException
protected void updateOnewayMethodSignature(Map<String,List<String>> onewayMap,
Map<String,List<MethodSignature>> mapOperationsMethod)
onewayMap - A map where the key is a full java class name
and the value is a list of oneway methods.mapOperationsMethod - A map where the key is a full java class name
and the value is a list method signatures.
protected boolean setOnewayPropertyOnTheMethodSignature(String onewayMethod,
List<MethodSignature> methodSignatureList)
onewayMethod - The name of the oneway method.methodSignatureList - The list of the method's signature to inspect
public URLClassLoader getUrlClassLoader()
public ChildFirstClassLoader getOriginalClassLoader()
protected void addEnumClass(String workdirsrc)
throws ClassGenerationException
workdirsrc - The work dir src
ClassGenerationException - The class generation exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||