freemarker.template
Interface CompileableFactory<T extends Compileable>

All Known Implementing Classes:
BinaryDataFactory, TemplateFactory, UnparsedTemplateFactory

public interface CompileableFactory<T extends Compileable>

An interface for factory methods that can create Compileable objects. The main example of a compileable object is a Template.

Since:
1.9
Version:
$I$
Author:
Nicholas Cull

Method Summary
 T create(CompileableFactoryParameters compileableParameters)
          Create an instance of the compilable object from the given InputStream.
 java.lang.String getName()
          Return a name for the compilable object created by this factory.
 

Method Detail

getName

java.lang.String getName()
Return a name for the compilable object created by this factory.

Returns:
the name of the object the implementing factory creates

create

T create(CompileableFactoryParameters compileableParameters)
                             throws java.io.IOException
Create an instance of the compilable object from the given InputStream.

Parameters:
compileableParameters -
Returns:
a newly created compilable object from the given input stream
Throws:
java.io.IOException - there was a problem reading from the input stream