org.tinyjee.maven.dim.spi
Class FixedContentSource

java.lang.Object
  extended by org.tinyjee.maven.dim.spi.AbstractSource
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.tinyjee.maven.dim.spi.AbstractSource
AbstractSource.SourceContent
 
Nested classes/interfaces inherited from interface org.tinyjee.maven.dim.spi.Source
Source.Content
 
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.
 
Fields inherited from class org.tinyjee.maven.dim.spi.AbstractSource
parameters, sourceUrl
 
Constructor Summary
FixedContentSource(String content, Map<String,Object> parameters)
          Constructs a new instance of FixedContentSource with the given content.
 
Method Summary
 Source.Content getContent()
          Retrieves the source content.
 
Methods inherited from class org.tinyjee.maven.dim.spi.AbstractSource
getUrl, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

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.
Method Detail

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.