/** * Determines is a template exists, and returns name of the loader that * provides it. This is a slightly less hokey way to support * the Velocity.templateExists() utility method, which was broken * when per-template encoding was introduced. We can revisit this. * * @param resourceName Name of template or content resource * @return class name of loader than can provide it * @see RuntimeInstance#getLoaderNameForResource(String) */ public static String getLoaderNameForResource( String resourceName ) { return ri.getLoaderNameForResource(resourceName); }
/** * Determines is a template exists, and returns name of the loader that * provides it. This is a slightly less hokey way to support * the Velocity.templateExists() utility method, which was broken * when per-template encoding was introduced. We can revisit this. * * @param resourceName Name of template or content resource * @return class name of loader than can provide it */ public static String getLoaderNameForResource( String resourceName ) { return ri.getLoaderNameForResource( resourceName ); }
/** * Determines is a template exists, and returns name of the loader that * provides it. This is a slightly less hokey way to support * the Velocity.templateExists() utility method, which was broken * when per-template encoding was introduced. We can revisit this. * * @param resourceName Name of template or content resource * @return class name of loader than can provide it * @see RuntimeInstance#getLoaderNameForResource(String) */ public static String getLoaderNameForResource( String resourceName ) { return ri.getLoaderNameForResource( resourceName ); }
/** * Determines is a template exists, and returns name of the loader that * provides it. This is a slightly less hokey way to support * the Velocity.templateExists() utility method, which was broken * when per-template encoding was introduced. We can revisit this. * * @param resourceName Name of template or content resource * @return class name of loader than can provide it * @see RuntimeInstance#getLoaderNameForResource(String) */ public static String getLoaderNameForResource( String resourceName ) { return ri.getLoaderNameForResource( resourceName ); }
/** * Determines if a resource is accessable via the currently * configured resource loaders. * <br><br> * Note that the current implementation will <b>not</b> * change the state of the system in any real way - so this * cannot be used to pre-load the resource cache, as the * previous implementation did as a side-effect. * <br><br> * The previous implementation exhibited extreme lazyness and * sloth, and the author has been flogged. * * @param resourceName name of the resource to search for * @return true if found, false otherwise * @since 1.5 */ public boolean resourceExists(String resourceName) { return (ri.getLoaderNameForResource(resourceName) != null); }
/** * Determines if a resource is accessable via the currently * configured resource loaders. * <br><br> * Note that the current implementation will <b>not</b> * change the state of the system in any real way - so this * cannot be used to pre-load the resource cache, as the * previous implementation did as a side-effect. * <br><br> * The previous implementation exhibited extreme lazyness and * sloth, and the author has been flogged. * * @param resourceName name of the resource to search for * @return true if found, false otherwise * @since 1.5 */ public boolean resourceExists(String resourceName) { return (ri.getLoaderNameForResource(resourceName) != null); }
/** * Determines if a template is accessable via the currently * configured resource loaders. * <br><br> * Note that the current implementation will <b>not</b> * change the state of the system in any real way - so this * cannot be used to pre-load the resource cache, as the * previous implementation did as a side-effect. * <br><br> * The previous implementation exhibited extreme lazyness and * sloth, and the author has been flogged. * * @param templateName name of the temlpate to search for * @return true if found, false otherwise */ public boolean templateExists( String templateName ) { return (ri.getLoaderNameForResource(templateName) != null); }
/** * Determines if a resource is accessible via the currently * configured resource loaders. * <br><br> * Note that the current implementation will <b>not</b> * change the state of the system in any real way - so this * cannot be used to pre-load the resource cache, as the * previous implementation did as a side-effect. * <br><br> * The previous implementation exhibited extreme laziness and * sloth, and the author has been flogged. * * @param resourceName name of the resource to search for * @return true if found, false otherwise * @since 1.5 */ public boolean resourceExists(String resourceName) { return (ri.getLoaderNameForResource(resourceName) != null); }