org.pivot4j.pentaho.servlet.PluginResourceResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pivot4j-pentaho Show documentation
Show all versions of pivot4j-pentaho Show documentation
Pivot4J Pentatho is an OLAP analysis plugin for BI platform based on Pivot4J library.
The newest version!
package org.pivot4j.pentaho.servlet;
import java.net.URL;
import org.apache.myfaces.view.facelets.impl.DefaultResourceResolver;
public class PluginResourceResolver extends DefaultResourceResolver {
public static final String RESOURCE_PREFIX = "./webapp";
/**
* @see org.apache.myfaces.view.facelets.impl.DefaultResourceResolver#resolveUrl(java.lang.String)
*/
@Override
public URL resolveUrl(String path) {
return getClass().getClassLoader().getResource(RESOURCE_PREFIX + path);
}
}