org.ow2.jonas.deployment.ws.wrapper
Class MappingFileManagerWrapper

java.lang.Object
  extended by org.ow2.jonas.deployment.ws.wrapper.MappingFileManagerWrapper

public class MappingFileManagerWrapper
extends Object

Wrap the MappingFileManager to solve ClassLoader problems linked to Digester.

Author:
Guillaume Sauthier

Method Summary
static MappingFile getMappingFile(File module, String filename)
          Wrap MappingFileManager.getInstance(module, filename) call.
static MappingFile getMappingFile(InputStream is, String filename)
          Wrap MappingFileManager.getInstance(module, filename) call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMappingFile

public static MappingFile getMappingFile(File module,
                                         String filename)
                                  throws WSDeploymentDescException
Wrap MappingFileManager.getInstance(module, filename) call.

Parameters:
module - directory where mapping file can be found
filename - mapping file filename
Returns:
the MappingFile
Throws:
WSDeploymentDescException - When MappingFile cannot be instanciated

getMappingFile

public static MappingFile getMappingFile(InputStream is,
                                         String filename)
                                  throws WSDeploymentDescException
Wrap MappingFileManager.getInstance(module, filename) call.

Parameters:
is - InputStream of the MappingFile
filename - mapping file filename
Returns:
the MappingFile
Throws:
WSDeploymentDescException - When MappingFile cannot be instanciated


Copyright © 2010 OW2 Consortium. All Rights Reserved.