Class AbstractFileTextResourceProvider
java.lang.Object
ch.tocco.nice2.textresources.impl.providers.AbstractFileTextResourceProvider
- All Implemented Interfaces:
TextResourceProvider
- Direct Known Subclasses:
ModuleTextResourceProvider
public abstract class AbstractFileTextResourceProvider
extends Object
implements TextResourceProvider
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
Nested classes/interfaces inherited from interface ch.tocco.nice2.textresources.spi.TextResourceProvider
TextResourceProvider.ResourceAdder
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
Run throught your resorces.final void
final void
setRegexPrefixPart
(String regexPrefixPart) final void
setRegexSuffixPart
(String regexSuffixPart)
-
Field Details
-
log
protected final org.slf4j.Logger log -
filePattern
-
-
Constructor Details
-
AbstractFileTextResourceProvider
protected AbstractFileTextResourceProvider(org.slf4j.Logger log)
-
-
Method Details
-
readResources
- Specified by:
readResources
in interfaceTextResourceProvider
-
readResoucesImpl
Run throught your resorces. If you want to read a file, callAbstractFileTextResourceProvider.Adder.readRecursive(ModelResource, String)
on the argument- Parameters:
add
- the adder, non-null
-
setRegexSuffixPart
-
setRegexPrefixPart
-