org.springframework.shell.support.util
Class TemplateUtils

java.lang.Object
  extended by org.springframework.shell.support.util.TemplateUtils

public final class TemplateUtils
extends Object

Utilities for dealing with "templates", which are commonly used by ROO add-ons.

Since:
1.0

Method Summary
static InputStream getTemplate(Class<?> clazz, String templateFilename)
          Deprecated. use FileUtils.getInputStream(Class, String) instead
static String getTemplatePath(Class<?> loadingClass, String relativeFilename)
          Deprecated. use FileUtils.getPath(Class, String) instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTemplatePath

@Deprecated
public static String getTemplatePath(Class<?> loadingClass,
                                                String relativeFilename)
Deprecated. use FileUtils.getPath(Class, String) instead

Determines the path to the requested template.

Parameters:
clazz - which owns the template (required)
templateFilename - the filename of the template (required)
Returns:
the full classloader-specific path to the template (never null)

getTemplate

@Deprecated
public static InputStream getTemplate(Class<?> clazz,
                                                 String templateFilename)
Deprecated. use FileUtils.getInputStream(Class, String) instead

Acquires an InputStream to the requested classloader-derived template.

Parameters:
clazz - which owns the template (required)
templateFilename - the filename of the template (required)
Returns:
the input stream (never null; an exception is thrown if cannot be found)