This package provides the implementation of directive caches as well as functionality to create instances. A directive cache acts as a repository of named/pcdata (parsed character) directives

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