|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas_ws.wsgen.AbsConfigGenerator
This class realizes configuration files generation. This class implements genEndpointConfig & genClientConfig methods; configuration methods stay abstract (WS implementation specific).
Nested Class Summary | |
class |
AbsConfigGenerator.DirFileFilter
|
class |
AbsConfigGenerator.JavaFileFilter
|
Field Summary | |
protected java.lang.String |
cp
The classpath to use with command lines |
protected java.lang.String |
filename
The complete name of the file processed |
protected java.io.File |
genDir
The output directory where files are generated |
protected java.lang.String |
javaHomeBin
The $JAVA_HOME/bin directory |
protected static org.objectweb.util.monolog.api.Logger |
logger
WsGen logger |
Fields inherited from interface org.objectweb.jonas_ws.wsgen.ConfigGenerator |
DEBUG, DEBUG_DEFAULT, KEEP_GEN, NO_CONFIG, NO_CONFIG_DEFAULT, VERBOSE, VERBOSE_DEFAULT |
Constructor Summary | |
AbsConfigGenerator()
Constructor : creates a AbsConfigGenerator object. |
Method Summary | |
protected void |
addSrcs(java.io.File dir,
java.util.Vector srcs)
|
protected void |
compileGenDir()
|
protected void |
configureClient(ServiceRef sr)
ConfigureClient has to be implemented in subClass. |
protected void |
configureEndpoint(WSDeploymentDesc wsdd)
Configure Endpoint has to be implemented in subClass. |
protected boolean |
destroyFile(java.io.File file)
Recursively destroy the given file. |
protected void |
destroyTempDir()
Destroy the temporary directory used for generation. |
void |
genClientConfig(java.util.Iterator bdIt,
java.lang.String filename)
Client config generation for ajbjar file |
void |
genClientConfig(ServiceRef[] servRefs,
java.lang.String filename)
Client config generation for war file |
protected void |
genClientFiles(ServiceRef[] servRefs)
|
void |
genEndpointConfig(WSDeploymentDesc dd,
java.lang.String filename)
Generate endpoint configuration files for the set of ServiceDesc included in WSDeploymentDesc. |
java.lang.String |
getDefaultMapping()
|
java.lang.String |
getEngineWebApp()
Return the webservices engine class name. |
java.lang.Object |
getOption(java.lang.String name)
Get an option, return the option value or null if the option isn't set. |
java.lang.Object |
getOption(java.lang.String name,
java.lang.Object defolt)
Get an option, return the option value or default if the option isn't set. |
protected boolean |
isDebug()
return true if debug mode is set. |
protected boolean |
isNoConfig()
return true if noConfig mode is set. |
protected boolean |
isVerbose()
return true if verbose mode is set. |
void |
setOption(java.lang.String name,
java.lang.Object value)
Set an option for generation. |
protected void |
trace(java.lang.String msg)
Display the specified message only if verbose. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.objectweb.util.monolog.api.Logger logger
protected java.io.File genDir
protected java.lang.String javaHomeBin
protected java.lang.String cp
protected java.lang.String filename
Constructor Detail |
public AbsConfigGenerator()
Method Detail |
public java.lang.String getDefaultMapping()
getDefaultMapping
in interface ConfigGenerator
public void genEndpointConfig(WSDeploymentDesc dd, java.lang.String filename) throws WsGenException
ConfigGenerator
genEndpointConfig
in interface ConfigGenerator
dd
- The DeploymentDesc to process (image of a webservices.xml)filename
- The war or jar being processed
WsGenException
- if generation failsprotected void addSrcs(java.io.File dir, java.util.Vector srcs) throws WsGenException
WsGenException
protected void compileGenDir() throws WsGenException
WsGenException
protected void genClientFiles(ServiceRef[] servRefs) throws WsGenException
WsGenException
public void genClientConfig(java.util.Iterator bdIt, java.lang.String filename) throws WsGenException
genClientConfig
in interface ConfigGenerator
bdIt
- an iterator on a bean desc listfilename
- The war or jar being processed
WsGenException
- if generation failspublic void genClientConfig(ServiceRef[] servRefs, java.lang.String filename) throws WsGenException
genClientConfig
in interface ConfigGenerator
servRefs
- The list of ServiceRef to process.filename
- The war or jar being processed
WsGenException
- if generation failsprotected boolean destroyFile(java.io.File file)
file
- the file to destroy.protected void destroyTempDir()
protected void configureEndpoint(WSDeploymentDesc wsdd) throws WsGenException
wsdd
- the webservices deployment descriptor
WsGenException
- if generation fails
if the method isn't implementedprotected void configureClient(ServiceRef sr) throws WsGenException
sr
- The ServiceRef representing the client dependency.
WsGenException
- if generation fails
if the method isn't implementedpublic java.lang.String getEngineWebApp() throws WsGenException
getEngineWebApp
in interface ConfigGenerator
WsGenException
- if the method isn't implementedprotected void trace(java.lang.String msg)
msg
- the message to displayprotected boolean isVerbose()
protected boolean isDebug()
protected boolean isNoConfig()
public void setOption(java.lang.String name, java.lang.Object value)
setOption
in interface ConfigGenerator
name
- option namevalue
- option valuepublic java.lang.Object getOption(java.lang.String name, java.lang.Object defolt)
getOption
in interface ConfigGenerator
name
- option namedefolt
- default option value
public java.lang.Object getOption(java.lang.String name)
getOption
in interface ConfigGenerator
name
- option name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |