|
Qizx fe-4.4p2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.qizx.api.LibraryManagerFactory
public abstract class LibraryManagerFactory
Factory used to initialize a LibraryManager. A LibraryManager instance is obtained:
createManager()
).
openLibraryGroup(java.io.File)
).
createLibraryGroup(java.io.File)
).
Method Summary | |
---|---|
abstract LibraryManager |
createLibraryGroup(File groupDirectory)
Deprecated. Creates a LibraryManager controlling a group of XML Libraries |
abstract LibraryManager |
createManager()
Deprecated. Creates a LibraryManager without group directory and without XML Libraries. |
static LibraryManagerFactory |
getInstance()
Deprecated. Creates an instance of the factory, which can be used to configure a LibraryManager. |
abstract long |
getMemoryLimit()
Deprecated. from 4.0, use LibraryManager.getMemoryLimit() . |
static File |
locateLibrary(File location)
Deprecated. Tests whether a directory contains an XML Library. |
abstract LibraryManager |
openLibraryGroup(File groupDirectory)
Deprecated. Starts a LibraryManager controlling an existing group of XML Libraries located as sub-directories of the 'group directory'. |
abstract void |
setLogHandler(Handler handler)
Deprecated. Defines a supplementary Log Handler used on new LibraryManagers. |
abstract void |
setMemoryLimit(long size)
Deprecated. from 4.0, use LibraryManager.setMemoryLimit(long) . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LibraryManagerFactory getInstance()
public static File locateLibrary(File location) throws FileNotFoundException
location
- a directory supposedly containing an
XML Library. It can also be any file or directory within an XML Library.
FileNotFoundException
- if parent directory cannot be accessedpublic abstract LibraryManager createManager() throws QizxException
Libraries can then be managed through LibraryManager.manageLibrary(java.lang.String, java.io.File)
or created through LibraryManager.createLibrary(java.lang.String, java.io.File)
.
QizxException
- if storageDir exists and is not empty.public abstract LibraryManager createLibraryGroup(File groupDirectory) throws QizxException
There is initially no XML Library in the created group. A Library can be
added by LibraryManager.createLibrary(java.lang.String, java.io.File)
.
groupDirectory
- a directory which is the location of the Library
Group. This directory is created if it does not exist.
QizxException
- if storageDir exists and is not empty.public abstract LibraryManager openLibraryGroup(File groupDirectory) throws QizxException
groupDirectory
- a directory which is the root location of the group.
QizxException
- if storageDir has not been initialized by
invoking createLibraryGroup(File)
.public abstract void setLogHandler(Handler handler)
handler
- public abstract void setMemoryLimit(long size)
LibraryManager.setMemoryLimit(long)
.
size
- maximum size in bytes of memory allocated to the
LibraryManager.getMemoryLimit()
public abstract long getMemoryLimit()
LibraryManager.getMemoryLimit()
.
setMemoryLimit(long)
|
© 2010 Axyana Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |