org.ow2.jonas.deployment.common.util
Class ResourceHelper

java.lang.Object
  extended by org.ow2.jonas.deployment.common.util.ResourceHelper

public final class ResourceHelper
extends Object

Resource name helper.

Author:
Guillaume Sauthier

Method Summary
static String convertPackageName(String packageName)
           
static String getResourcePackage(Class<?> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getResourcePackage

public static String getResourcePackage(Class<?> clazz)
Parameters:
clazz - Class located in the package.
Returns:
the class package name that can be used to load resources (. replaced by /).

convertPackageName

public static String convertPackageName(String packageName)
Parameters:
packageName - a java package name.
Returns:
the package name that can be used to load resources (. replaced by /).


Copyright © 2010 OW2 Consortium. All Rights Reserved.