|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.roo.support.util.TemplateUtils
public abstract class TemplateUtils
Utilities for dealing with "templates", which are commonly used by ROO add-ons.
Constructor Summary | |
---|---|
TemplateUtils()
|
Method Summary | |
---|---|
static Set<URL> |
findMatchingClasspathResources(org.osgi.framework.BundleContext context,
String antPathExpression)
|
static Set<URL> |
findUrls(org.osgi.framework.BundleContext context,
String resourceName)
Locates URL s that represent a search of all bundles for a given resource. |
static InputStream |
getTemplate(Class<?> clazz,
String templateFilename)
Acquires an InputStream to the requested classloader-derived template. |
static String |
getTemplatePath(Class<?> clazz,
String templateFilename)
Determines the path to the requested template. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplateUtils()
Method Detail |
---|
public static final String getTemplatePath(Class<?> clazz, String templateFilename)
clazz
- which owns the template (required)templateFilename
- the filename of the template (required)
public static final InputStream getTemplate(Class<?> clazz, String templateFilename)
InputStream
to the requested classloader-derived template.
clazz
- which owns the template (required)templateFilename
- the filename of the template (required)
public static final Set<URL> findUrls(org.osgi.framework.BundleContext context, String resourceName)
URL
s that represent a search of all bundles for a given resource.
context
- that can be used to obtain bundles to search (required)resourceName
- the resource to locate (eg "/foo.txt" will find foo.txt in the root of each bundle)
public static final Set<URL> findMatchingClasspathResources(org.osgi.framework.BundleContext context, String antPathExpression)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |