org.jplate.foundation.source.impl.defaults
Class DefaultSourceFactory<S>

java.lang.Object
  extended by org.jplate.foundation.source.impl.defaults.DefaultSourceFactory<S>
Type Parameters:
S - The real "source" (for instance, file, URL, etc).
All Implemented Interfaces:
java.io.Serializable, SourceFactoryIfc<S>

public final class DefaultSourceFactory<S>
extends java.lang.Object
implements SourceFactoryIfc<S>

Default implementation of SourceFactoryIfc that creates DefaultSource.

The following are some examples on how to use this class:

Please note: Instances of DefaultSource can be created using the default constructor of DefaultSource.

Modifications:
    $Date: 2008-12-02 12:32:45 -0500 (Tue, 02 Dec 2008) $
    $Revision: 479 $
    $Author: sfloess $
    $HeadURL: https://jplate.svn.sourceforge.net/svnroot/jplate/trunk/src/dev/java/org/jplate/foundation/source/impl/defaults/DefaultSourceFactory.java $
    

See Also:
DefaultSource, Serialized Form

Field Summary
private  org.apache.commons.logging.Log _log
          Used for logging.
private static long serialVersionUID
          For serialization purposes.
 
Constructor Summary
DefaultSourceFactory()
          Default constructor.
 
Method Summary
 SourceIfc<S> createSource(S source, int line, int column)
          Create and return a source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
For serialization purposes.

See Also:
Constant Field Values

_log

private final transient org.apache.commons.logging.Log _log
Used for logging.

Constructor Detail

DefaultSourceFactory

public DefaultSourceFactory()
Default constructor.

Method Detail

createSource

public SourceIfc<S> createSource(S source,
                                 int line,
                                 int column)
Create and return a source.

Specified by:
createSource in interface SourceFactoryIfc<S>
Parameters:
source - The "real" source from which something exists (for instance a file).
line - The line number in source.
column - The column number in source.
Returns:
A source.