|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.tinyjee.maven.dim.extensions.DirectoryLoader
public class DirectoryLoader
DirectoryLoader is a 'source-class' compatible helper class that can scan and load files from the given source directories.
Usage:
%{include|source=template.vm|source-class=org.tinyjee.maven.dim.extensions.DirectoryLoader}
%{include|source=template.vm|source-directories=src/main,src/test}
| Nested Class Summary | |
|---|---|
static class |
DirectoryLoader.AliasHandler
Implements the " PARAM_ALIAS" alias functionality. |
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Field Summary | |
|---|---|
protected static Map<String,Class<? extends Map<String,Object>>> |
EXTENSION_TO_LOADER_MAPPING
|
protected static Map<Class,String> |
FILE_INPUT_PARAM_MAP
|
static String |
PARAM_ALIAS
Defines a shortcut for the request properties 'source-class' and 'directories'. |
static String |
PARAM_DIRECTORIES
Sets a comma separated list of URL or local path pointing to directories to load recursively. |
static String |
PARAM_OUT_FILES
Is set with a selectable list of FileReference instances of all files that were found in the given directories. |
static String |
PARAM_OUT_JAVA_CLASSES
Is set with a selectable list of all java classes found in the given directories. |
static String |
PARAM_OUT_PROPERTY_FILES
Is set with a selectable list of FileReference instances of all XML files that were found in the given
directories. |
static String |
PARAM_OUT_XML_FILES
Is set with a selectable list of FileReference instances of all XML files that were found in the given
directories. |
| Constructor Summary | |
|---|---|
DirectoryLoader(File baseDir,
Map<String,Object> requestParams)
|
|
| Method Summary |
|---|
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Field Detail |
|---|
protected static final Map<String,Class<? extends Map<String,Object>>> EXTENSION_TO_LOADER_MAPPING
protected static final Map<Class,String> FILE_INPUT_PARAM_MAP
public static final String PARAM_ALIAS
public static final String PARAM_DIRECTORIES
source"
(see Macro reference).
public static final String PARAM_OUT_FILES
FileReference instances of all files that were found in the given directories.
The returned list derives from SelectableArrayList.
public static final String PARAM_OUT_XML_FILES
FileReference instances of all XML files that were found in the given
directories.
Note: This is a shortcut to $files.selectMatching("(?i).*(\.xml|\.xsl|\.xdoc|\.xhtml|\.json)$").
public static final String PARAM_OUT_PROPERTY_FILES
FileReference instances of all XML files that were found in the given
directories.
Note: This is a shortcut to $files.selectMatching("(?i).*(\.properties)$").
public static final String PARAM_OUT_JAVA_CLASSES
SelectableMappedJavaEntitiesList and every list row is a map created by
JavaSourceLoader.
| Constructor Detail |
|---|
public DirectoryLoader(File baseDir,
Map<String,Object> requestParams)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||