public abstract class AbstractSingleIncludeSourcePathSourceProvider extends AbstractSourcePathSourceProvider
The implementations should not override the methods get() but should
implement the abstract methods getSource(). The method
getSource() is invoked only when it is ensured that the source was
not yet included.
| Constructor and Description |
|---|
AbstractSingleIncludeSourcePathSourceProvider() |
| Modifier and Type | Method and Description |
|---|---|
Reader |
get(String sourceName)
Get a reader to a source when there is no referencing source.
|
Reader |
get(String sourceName,
String referencingSource)
Get a reader to a source specifying the source that references this
source.
|
protected abstract String |
getKeyName(String sourceName) |
protected abstract String |
getKeyName(String sourceName,
String referencingSource) |
SingleIncludeChecker |
getSingleInclude() |
protected abstract Reader |
getSource(String sourceName) |
protected abstract Reader |
getSource(String sourceName,
String referencingSource) |
void |
setSingleInclude(SingleIncludeChecker singleInclude)
This setter can be called if the BasicSingleIncludeChecker as
implementation is not appropriate.
|
getSourcePath, setSourcePathpublic AbstractSingleIncludeSourcePathSourceProvider()
public SingleIncludeChecker getSingleInclude()
public void setSingleInclude(SingleIncludeChecker singleInclude)
This method allows configuration of these source providers in a DI container.
singleInclude - public final Reader get(String sourceName) throws IOException
SourceProviderget in interface SourceProviderget in class AbstractSourceProvidersourceName - the name of the sourceIOExceptionpublic final Reader get(String sourceName, String referencingSource) throws IOException
SourceProviderget in interface SourceProviderget in class AbstractSourceProvidersourceName - the name of the source to get the reader to.referencingSource - the name of the source that is referencing the source to read.IOExceptionprotected abstract Reader getSource(String sourceName) throws IOException
IOExceptionprotected abstract Reader getSource(String sourceName, String referencingSource) throws IOException
IOExceptionCopyright © 2013 Verhas and Verhas Software Craftsmen. All Rights Reserved.