org.ow2.jonas.deployment.common.util
Class ResourceHelper
java.lang.Object
org.ow2.jonas.deployment.common.util.ResourceHelper
public final class ResourceHelper
- extends Object
Resource name helper.
- Author:
- Guillaume Sauthier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.