| org.enhydra.util.jivan.JivanFactory
JivanFactory | public class JivanFactory extends DocumentFactory (Code) | | Title: JivanFactory
Description: JivanFactory extends the capabilities of DocumentFactory
class which is originaly supplied by Jivan project. The enhacements are the
possibilites of logging and autoreloading. To invoke autoreloading, in the
application configuration file, the parameter 'Server.Jivan.AutoReload'
should be set to 'true'. Autoreloading parameter force Jivan DocumentFactory
object to read neededy resource again from its source. Note that
autoreloading slows down the performance, and it should be used in testing
purpose. The default value for autoreloading is false.
Copyright: Copyright (c) 2004
Company: Together
author: Vladimir Radisic version: 1.0 |
Constructor Summary | |
public | JivanFactory(boolean reload, LogChannel logChan) Constructs JivanFactory with autoreloading indicator, and given Log4j
logging object. |
Method Summary | |
public DocumentManager | docManFor(String resourceId, XMLInputSource inp) Overrides DocumentFactory method in order to implement autoreloading
possibility. | public LogChannel | getLogger() Returns logging object which can be used in applications. |
JivanFactory | public JivanFactory(boolean reload, LogChannel logChan)(Code) | | Constructs JivanFactory with autoreloading indicator, and given Log4j
logging object. This constructor initialise DocumentManager singleton
object if it is not initialised yet.
Parameters: reload - autoreloading status indicator (true = on, false = off). Parameters: logChan - logging object |
docManFor | public DocumentManager docManFor(String resourceId, XMLInputSource inp)(Code) | | Overrides DocumentFactory method in order to implement autoreloading
possibility. It retrieves a DocumentManager for the specific 'resourceId'.
Also, if DocumentManager for the corresponding 'resourceId' does not
exists, it reads given XMLInputSource object and creates DocumentManager.
Other docManFor() methods also call this method. docManFor() with single
argument of String type, calls this method with self created XMLInputSource
object by using its 'systemId' argument, which represents the location of
the resource.
For example the systemId can look like:
file:///C:/projects/testjivan/Welcome.html
Parameters: resourceId - unique resource identifier which is used as key forretrieving corresponding DocumentManager. Parameters: inp - XMLInputSource object which is taken as resource in case whenthere is no corresponding DocumentManager for given 'resourceId'. DocumentManager which corresponds to given 'resourceId'. |
getLogger | public LogChannel getLogger()(Code) | | Returns logging object which can be used in applications.
logging object |
|
|