org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager Class Reference

Collaboration diagram for org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

WSDeploymentDesc getDeploymentDesc (URL url, ClassLoader jarCL, ClassLoader earCL) throws WSDeploymentDescException
WSDeploymentDesc getDeploymentDesc (URL url, URL unpackedURL, ClassLoader jarCL, ClassLoader earCL) throws WSDeploymentDescException
int getCacheSize ()
void clearCache ()
void removeCache (ClassLoader cl)
String toString ()
PortComponentDesc getPortComponentDesc (URL callerURL, String portComponentLinkName, ClassLoader moduleLoader, ClassLoader earLoader) throws WSDeploymentDescException

Static Public Member Functions

WSDeploymentDescManager getInstance ()
WSDeploymentDesc getDeploymentDesc (String file, ClassLoader jarCL) throws WSDeploymentDescException
Webservices loadWebservices (Reader reader, String fileName) throws WSDeploymentDescException
JonasWebservices loadJonasWebservices (Reader reader, String fileName) throws WSDeploymentDescException
boolean getParsingWithValidation ()
void setParsingWithValidation (boolean validation)

Static Public Attributes

final String WS_EJBJAR_FILE_NAME = "META-INF/webservices.xml"
final String JONAS_WS_EJBJAR_FILE_NAME = "META-INF/jonas-webservices.xml"
final String WS_WEBAPP_FILE_NAME = "WEB-INF/webservices.xml"
final String JONAS_WS_WEBAPP_FILE_NAME = "WEB-INF/jonas-webservices.xml"

Detailed Description

This class provide a way for managing the WSDeploymentDesc. Note that there is 1 instance of the WSDeploymentDescManager on each JOnAS server.
Author:
Guillaume Sauthier

Xavier Delplanque

Helene Joanin

Definition at line 81 of file WSDeploymentDescManager.java.


Member Function Documentation

void org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.clearCache  ) 
 

Clear the cache.

Definition at line 627 of file WSDeploymentDescManager.java.

int org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.getCacheSize  ) 
 

Get the size of the cache (number of entries in the cache). Used only for debugging.

Returns:
the size of the cache (number of entries in the cache).

Definition at line 619 of file WSDeploymentDescManager.java.

Referenced by org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.toString().

WSDeploymentDesc org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.getDeploymentDesc URL  url,
URL  unpackedURL,
ClassLoader  jarCL,
ClassLoader  earCL
throws WSDeploymentDescException
 

Get the specified ws deployment descriptor and put it in the cache if it is not in.

Parameters:
url module (ejbjar or war). It can be a directory or a jar file.
unpackedURL Unpacked URL of the module archive
jarCL classloader used to load bean classes.
earCL the parent classloader (the ear classloader). Null when not in the case of an ear application.
Returns:
the module webservices deployment descriptor if it exists, null else.
Exceptions:
WSDeploymentDescException when WSDeploymentDesc cannot be created with the given files.

Definition at line 273 of file WSDeploymentDescManager.java.

WSDeploymentDesc org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.getDeploymentDesc URL  url,
ClassLoader  jarCL,
ClassLoader  earCL
throws WSDeploymentDescException
 

Get the specified ws deployment descriptor and put it in the cache if it is not in.

Parameters:
url module (ejbjar or war). It can be a directory or a jar file.
jarCL classloader used to load bean classes.
earCL the parent classloader (the ear classloader). Null when not in the case of an ear application.
Returns:
the module webservices deployment descriptor if it exists, null else.
Exceptions:
WSDeploymentDescException when WSDeploymentDesc cannot be created with the given files.

Definition at line 255 of file WSDeploymentDescManager.java.

References org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.getDeploymentDesc().

Here is the call graph for this function:

WSDeploymentDesc org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.getDeploymentDesc String  file,
ClassLoader  jarCL
throws WSDeploymentDescException [static]
 

Get the specified WebService deployment descriptor. Used by WsGen.

Parameters:
file module (ejbjar or war). It is required that file is not a directory.
jarCL the classloader where classes are stored.
Returns:
the module webservices deployment descriptor if it exists, null else.
Exceptions:
WSDeploymentDescException when WSDeploymentDesc cannot be created with the given files.

Definition at line 199 of file WSDeploymentDescManager.java.

References org.objectweb.jonas_ws.deployment.api.WSDeploymentDesc.getServiceDescs(), org.objectweb.jonas_ws.deployment.api.PortComponentDesc.getSibLink(), org.objectweb.jonas_ws.deployment.api.PortComponentDesc.hasBeanImpl(), org.objectweb.jonas_ws.deployment.api.PortComponentDesc.hasJaxRpcImpl(), and org.objectweb.jonas_ws.deployment.api.PortComponentDesc.setDesc().

Referenced by org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.getDeploymentDesc(), and org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.getPortComponentDesc().

Here is the call graph for this function:

WSDeploymentDescManager org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.getInstance  )  [static]
 

Get the unique instance of the WSDeploymentDescManager.

Returns:
the instance of the WSDeploymentDescManager.

Definition at line 180 of file WSDeploymentDescManager.java.

Referenced by org.objectweb.jonas_web.deployment.lib.WebDeploymentDescManager.getDeploymentDesc(), and org.objectweb.jonas_ejb.deployment.lib.EjbDeploymentDescManager.getDeploymentDesc().

boolean org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.getParsingWithValidation  )  [static]
 

Controls whether the parser is reporting all validity errors.

Returns:
if true, all external entities will be read.

Definition at line 819 of file WSDeploymentDescManager.java.

Referenced by org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.loadJonasWebservices(), and org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.loadWebservices().

PortComponentDesc org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.getPortComponentDesc URL  callerURL,
String  portComponentLinkName,
ClassLoader  moduleLoader,
ClassLoader  earLoader
throws WSDeploymentDescException
 

Return the port component desc from the pcLink string. pcLink format : filename.[jar or war]#portComponentName in the same Ear File

Parameters:
callerURL the url of the module being parsed. This is needed because pcLink is relative. With the url and the pcLink, we can know where the file is locate.
portComponentLinkName the pcLink tag of an port-component-ref.
earLoader the classloader of the ear.
moduleLoader classlaoder of the current module
Returns:
the pcLink portComponent.
Exceptions:
WSDeploymentDescException when it failed

Definition at line 843 of file WSDeploymentDescManager.java.

References org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.getDeploymentDesc(), and org.objectweb.jonas_ws.deployment.api.WSDeploymentDesc.getServiceDescs().

Here is the call graph for this function:

JonasWebservices org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.loadJonasWebservices Reader  reader,
String  fileName
throws WSDeploymentDescException [static]
 

return a 'xml' object containing jonas-webservices.xml informations

Parameters:
reader jonas-webservices.xml file input stream reader
fileName jonas-webservices.xml file name
Returns:
a 'xml' object containing jonas-webservices.xml informations
Exceptions:
WSDeploymentDescException when JonasWebservices cannot be created with the given files.

Definition at line 587 of file WSDeploymentDescManager.java.

References org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.getParsingWithValidation(), and org.objectweb.jonas_lib.deployment.digester.JDigester.parse().

Here is the call graph for this function:

Webservices org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.loadWebservices Reader  reader,
String  fileName
throws WSDeploymentDescException [static]
 

return a 'xml' object containing webservices.xml informations

Parameters:
reader webservices.xml file input stream reader
fileName webservices.xml file name
Returns:
a 'xml' object containing webservices.xml informations
Exceptions:
WSDeploymentDescException when Webservices cannot be created with the given files.

Definition at line 554 of file WSDeploymentDescManager.java.

References org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.getParsingWithValidation(), and org.objectweb.jonas_lib.deployment.digester.JDigester.parse().

Here is the call graph for this function:

void org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.removeCache ClassLoader  cl  ) 
 

Remove the DD cache for the specified ClassLoader

Parameters:
cl the Key ClassLoader

Definition at line 635 of file WSDeploymentDescManager.java.

void org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.setParsingWithValidation boolean  validation  )  [static]
 

Controls whether the parser is reporting all validity errors.

Parameters:
validation if true, all external entities will be read.

Definition at line 827 of file WSDeploymentDescManager.java.

String org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.toString  ) 
 

Return a string representation of the cache. (Used only for debugging).

Returns:
a string representation of the cache.

Definition at line 649 of file WSDeploymentDescManager.java.

References org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.getCacheSize().

Here is the call graph for this function:


Member Data Documentation

final String org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.JONAS_WS_EJBJAR_FILE_NAME = "META-INF/jonas-webservices.xml" [static]
 

jonas-ejb-jar.xml filename

Definition at line 91 of file WSDeploymentDescManager.java.

final String org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.JONAS_WS_WEBAPP_FILE_NAME = "WEB-INF/jonas-webservices.xml" [static]
 

jonas-ejb-jar.xml filename

Definition at line 101 of file WSDeploymentDescManager.java.

final String org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.WS_EJBJAR_FILE_NAME = "META-INF/webservices.xml" [static]
 

ejb-jar.xml filename

Definition at line 86 of file WSDeploymentDescManager.java.

final String org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager.WS_WEBAPP_FILE_NAME = "WEB-INF/webservices.xml" [static]
 

ejb-jar.xml filename

Definition at line 96 of file WSDeploymentDescManager.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:13:39 2005 for JOnAS by  doxygen 1.3.9.1