Usage
To create an instance of
org.jplate.tmplate.directive.DirectiveCacheIfc
, please do
the following (assume klass has been instantiated):
// // Assume klass instantiated before this point... // final DirectiveCacheFactoryMgrIfc factoryMgr = DirectiveCacheFactoryMgrIfc.getSingleton (); final DirectiveCacheFactoryIfc factory = factoryMgr.getFactory ( klass ); final DirectiveCacheIfc directiveCache = factory.createDirectiveCache ();Please note: One can create a pre-populated cache by utilizing the
DirectiveCacheFactoryIfc.createDirectiveCache ( NamedDirectiveDefIfc namedDirectives[] )
method.
@see org.jplate.tmplate.directive.DirectiveCacheIfc
@see org.jplate.tmplate.directive.NamedDirectiveDefIfc