Docmosis API 2.1.0

com.docmosis.template.store
Class TemplateStoreFactory

java.lang.Object
  extended bycom.docmosis.template.store.TemplateStoreFactory

public class TemplateStoreFactory
extends Object

This factory provides TemplateStore instances. Currently only one store implementation is provided (a FileTemplateStore) and only one instance is created and shared by all users.


Constructor Summary
TemplateStoreFactory()
           
 
Method Summary
static TemplateStore getStore()
          Get the current Template Store.
static TemplateStore getStore(String location)
          Get (and initialise if necessary) the template store to use based on current configuration.
static void initialise()
          Initialise the Template Store factory.
static void release()
          Release the template store from memory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateStoreFactory

public TemplateStoreFactory()
Method Detail

getStore

public static TemplateStore getStore()
Get the current Template Store.

Returns:
the current template store.
Throws:
IllegalStateException - if initialise() hasn't been called

getStore

public static TemplateStore getStore(String location)
Get (and initialise if necessary) the template store to use based on current configuration.

Parameters:
location - the location of the store
Returns:
the template store to use.

initialise

public static void initialise()
Initialise the Template Store factory.


release

public static void release()
Release the template store from memory. To be able to use it again, call initialise().


Docmosis API 2.1.0

Copyright © 2007 Docmosis. All Rights Reserved.