com.google.clearsilver.jsilver.adaptor
Class JSilverFactory

java.lang.Object
  extended by com.google.clearsilver.jsilver.adaptor.JSilverFactory
All Implemented Interfaces:
ClearsilverFactory

public class JSilverFactory
extends Object
implements ClearsilverFactory

ClearsilverFactory that adapts JSilver for use as any HDF/CS rendering engine.


Constructor Summary
JSilverFactory()
          Default constructor.
JSilverFactory(JSilver jSilver, boolean unwrapDelegatedHdfs)
          This constructor is available for those who already use JSilver and want to use the same attributes and caches for their Java Clearsilver Framework code.
JSilverFactory(JSilverOptions options)
           
JSilverFactory(JSilverOptions options, boolean unwrapDelegatedHdfs)
           
 
Method Summary
 com.google.clearsilver.jsilver.adaptor.JCs newCs(HDF hdf)
          Create a new CS object.
 com.google.clearsilver.jsilver.adaptor.JCs newCs(HDF hdf, HDF globalHdf)
          Create a new CS object.
 JHdf newHdf()
          Create a new HDF object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSilverFactory

public JSilverFactory()
Default constructor. enables unwrapping of DelegatedHdfs.


JSilverFactory

public JSilverFactory(JSilverOptions options)

JSilverFactory

public JSilverFactory(JSilverOptions options,
                      boolean unwrapDelegatedHdfs)

JSilverFactory

public JSilverFactory(JSilver jSilver,
                      boolean unwrapDelegatedHdfs)
This constructor is available for those who already use JSilver and want to use the same attributes and caches for their Java Clearsilver Framework code. Users who use only JCF should use a different constructor.

Parameters:
jSilver - existing instance of JSilver to use for parsing and rendering.
unwrapDelegatedHdfs - whether to unwrap DelegetedHdfs or not before casting.
Method Detail

newCs

public com.google.clearsilver.jsilver.adaptor.JCs newCs(HDF hdf)
Description copied from interface: ClearsilverFactory
Create a new CS object.

Specified by:
newCs in interface ClearsilverFactory
Parameters:
hdf - the HDF object to use in constructing the CS object.
Returns:
a new CS object

newCs

public com.google.clearsilver.jsilver.adaptor.JCs newCs(HDF hdf,
                                                        HDF globalHdf)
Description copied from interface: ClearsilverFactory
Create a new CS object.

Specified by:
newCs in interface ClearsilverFactory
Parameters:
hdf - the HDF object to use in constructing the CS object.
globalHdf - the global HDF object to use in constructing the CS object.
Returns:
a new CS object

newHdf

public JHdf newHdf()
Description copied from interface: ClearsilverFactory
Create a new HDF object.

Specified by:
newHdf in interface ClearsilverFactory
Returns:
a new HDF object


Copyright © 2010-2012 Google. All Rights Reserved.