org.tinyjee.maven.dim.spi
Class FixedContentSource
java.lang.Object
org.tinyjee.maven.dim.spi.AbstractSource
org.tinyjee.maven.dim.spi.FixedContentSource
- All Implemented Interfaces:
- Source
public class FixedContentSource
- extends AbstractSource
Implements a Source that returns fixed content.
- Author:
- Juergen_Kellerer, 2011-10-23
Field Summary |
static URL |
UNKNOWN
Defines an unknown url that may be used as substitution for 'null' in services that are not null-pointer safe. |
UNKNOWN
public static final URL UNKNOWN
- Defines an unknown url that may be used as substitution for 'null' in services that are not null-pointer safe.
FixedContentSource
public FixedContentSource(String content,
Map<String,Object> parameters)
- Constructs a new instance of FixedContentSource with the given content.
- Parameters:
content
- The fixed content to wrap into a source implementation.parameters
- the macro parameters assigned with this source.
getContent
public Source.Content getContent()
- Description copied from interface:
Source
- Retrieves the source content.
- Specified by:
getContent
in interface Source
- Overrides:
getContent
in class AbstractSource
- Returns:
- the source content.