org.mevenide.genapp
Class GenAppTemplateFinder

java.lang.Object
  extended by org.mevenide.genapp.GenAppTemplateFinder

public class GenAppTemplateFinder
extends java.lang.Object

creator of genapp templates information. Currently no caching is done, not so often performed operation.

Author:
Peter Nabbefeld, Milos Kleint

Field Summary
static java.lang.String LOCATION_ALL
          constant combining default and user defined templates.
static java.lang.String LOCATION_DEFAULT
          constant for genapp plugin default templates
static java.lang.String LOCATION_USER
          constant for genapp user defined templates
 
Constructor Summary
GenAppTemplateFinder(org.mevenide.context.IQueryContext cont)
          Creates a new instance of MavenTemplateEnumerator
 
Method Summary
 TemplateInfo[] getTemplates(java.io.File customTemplateRootDir)
          get genapp templates information for a custom location.
 TemplateInfo[] getTemplates(java.lang.String type)
          get genapp templates information for a given location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCATION_DEFAULT

public static final java.lang.String LOCATION_DEFAULT
constant for genapp plugin default templates

See Also:
Constant Field Values

LOCATION_USER

public static final java.lang.String LOCATION_USER
constant for genapp user defined templates

See Also:
Constant Field Values

LOCATION_ALL

public static final java.lang.String LOCATION_ALL
constant combining default and user defined templates.

See Also:
Constant Field Values
Constructor Detail

GenAppTemplateFinder

public GenAppTemplateFinder(org.mevenide.context.IQueryContext cont)
Creates a new instance of MavenTemplateEnumerator

Method Detail

getTemplates

public TemplateInfo[] getTemplates(java.lang.String type)
get genapp templates information for a given location.

Parameters:
type - one of GenAppTemplateFinder.LOCATION_ALL, GenAppTemplateFinder.LOCATION_USER or GenAppTemplateFinder.LOCATION_DEFAULT

getTemplates

public TemplateInfo[] getTemplates(java.io.File customTemplateRootDir)
get genapp templates information for a custom location.

Parameters:
customTemplateRootDir - a custom root directory where templates are stored.


Copyright © 2003-2005 The Codehaus. All Rights Reserved.