public class MicrositeFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
bCache |
static java.util.HashMap |
oMicrosites |
Constructor and Description |
---|
MicrositeFactory() |
Modifier and Type | Method and Description |
---|---|
static boolean |
cache() |
static void |
cache(boolean bCacheOnOf)
Turns Microsite caching on/off
|
static Microsite |
getInstance(java.lang.String sURI)
Get a Microsite from an XML file
If Microsite is cached then cached instance is returned.
|
static Microsite |
getInstance(java.lang.String sURI,
boolean bValidateXML)
Get a Microsite from an XML file
If Microsite is cached then cached instance is returned.
|
public static boolean bCache
public static java.util.HashMap oMicrosites
public static boolean cache()
public static void cache(boolean bCacheOnOf)
bCacheOnOf
- true if Microsite caching is to be activated,
false if Microsite caching is to be deactivated.public static Microsite getInstance(java.lang.String sURI, boolean bValidateXML) throws java.lang.ClassNotFoundException, java.lang.Exception, java.lang.IllegalAccessException
sURI
- XML file URI starting with file://
(for example file:///opt/knowgate/storage/xslt/templates/Comtemporary.xml)bValidateXML
- true if XML validation with W3C schemas is to be done,
false is no validation is to be done.java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.Exception
public static Microsite getInstance(java.lang.String sURI) throws java.lang.ClassNotFoundException, java.lang.Exception, java.lang.IllegalAccessException
sURI
- XML file pathjava.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.Exception