|
Milyn-Smooks Version 0.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.milyn.cdr.CDRStore
Content Delivery Resource (CDR) store object.
This class is used to load CDRs.
Constructor Summary | |
CDRStore(ContainerContext containerContext)
Public constructor. |
Method Summary | |
CDRClassLoader |
getCdrarClassLoader()
Get the CDRClassLoader to be used loading java class instances from this CDRStore instance. |
CDRArchive[] |
getCdrars()
Get an array of the loaded CDRArchive instances. |
CDRDef[] |
getCDRDefs(UAContext deviceContext)
Get all CDRDef entries for the specified device from all loaded CDRArchive archives. |
CDRArchiveEntry |
getEntry(CDRDef unitDef)
Get the CDRArchiveEntry for the specificd CDRDef instance. |
CDRArchiveEntry |
getEntry(java.lang.String name)
Get the CDRArchiveEntry matching the name specified. |
java.lang.Object |
getObject(CDRDef unitDef)
Load a Java Object defined by the supplied CDRDef instance. |
void |
load(java.io.BufferedReader cdrarLoadList)
Load all .cdrar files listed in the BufferedReader stream. |
void |
load(CDRArchive cdrar)
Load a preconstructed CDRArchive instance. |
void |
load(java.io.File cdrarDir)
Load all .cdrar files in the specified folder. |
void |
load(java.lang.String name,
java.util.jar.JarInputStream cdrarStream)
Load an cdrar archive. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CDRStore(ContainerContext containerContext)
containerContext
- Container context in which this store lives.Method Detail |
public void load(CDRArchive cdrar)
cdrar
- CDRArchive instance to load.public void load(java.lang.String name, java.util.jar.JarInputStream cdrarStream) throws CDRArchiveAlreadyLoadedException, InvalidCDRArchiveException, java.io.IOException
name
- The archive name.cdrarStream
- The JarInputStream of the associated CDRArchive JAR.
CDRArchiveAlreadyLoadedException
- A cdrar by the supplied name has already
been loaded.
InvalidCDRArchiveException
- The cdrar is invalid e.g. no archive definition file.
java.io.IOException
- Error reading the JarInputStream.public void load(java.io.BufferedReader cdrarLoadList) throws java.io.IOException
cdrarLoadList
- BufferedReader cdrar list - one cdrar def per line.
java.io.IOException
public void load(java.io.File cdrarDir) throws java.io.IOException
cdrarDir
- Folder from which to load.
java.io.IOException
public CDRArchive[] getCdrars()
CDRArchive
instances.
Each CDRArchive
instance provides access to an enumeration of all
it's CDRArchiveEntry
s.
The order is equal to the order in which they were loaded.
CDRArchive
instances.public CDRArchiveEntry getEntry(java.lang.String name) throws CDRArchiveEntryNotFoundException
name
- The Jar name of the entry.
CDRArchiveEntryNotFoundException
- When the requested CDRArchiveEntry has not been loaded
and is therefore unknown.public CDRArchiveEntry getEntry(CDRDef unitDef) throws CDRArchiveEntryNotFoundException
unitDef
- The CDRDef whose CDRArchiveEntry is being requested.
CDRArchiveEntryNotFoundException
- When the requested CDRArchiveEntry has not been loaded
and is therefore unknown.public CDRDef[] getCDRDefs(UAContext deviceContext)
deviceContext
- The device.
public CDRClassLoader getCdrarClassLoader()
public java.lang.Object getObject(CDRDef unitDef)
CDRDef
parameter.
unitDef
- CDRDef instance.
|
Milyn-Smooks Version 0.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |