|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cuba.wired.ddread.XmlReader cuba.wired.ddread.WiredAppReader
public class WiredAppReader
XML reader for the descriptor of a wired application
Field Summary |
---|
Fields inherited from class cuba.wired.ddread.XmlReader |
---|
REVISION_ID |
Constructor Summary | |
---|---|
WiredAppReader(java.util.Properties props)
Create a WiredAppReader, fetching the application descriptor with a predefined name META-INF/wired-application.xml from the CLASSPATH. |
|
WiredAppReader(java.lang.String filename,
java.util.Properties props)
Create a WiredAppReader for the passed application descriptor |
Method Summary | |
---|---|
protected void |
checkLinkage(ReferenceMap.Reference ref,
AbstractDescriptor desc,
java.lang.String compName,
java.lang.String refName,
java.lang.String globalName)
|
java.lang.String[] |
getModuleNames()
Return all module names, not regarding if these are component JARs or ordinary archives |
java.lang.String |
locateModule(java.lang.String rawModuleName)
Find the actual location of a module, specified in the application descriptor in the following search order: Try to find the module as an ordinary file on the file system Try to find a JAR file with the given name from the current classloader's module source archives. |
java.lang.String |
locateModuleFromClasspath(java.lang.String rawModuleName)
|
static void |
main(java.lang.String[] args)
For test purposes only |
java.lang.Object[] |
process()
Process the application descriptor retrieved and parsed on construction |
java.util.Map |
registerPermissions(org.w3c.dom.Element appdd)
Return the role associations of all users being specified in the application descriptor in run-as tags |
Methods inherited from class cuba.wired.ddread.XmlReader |
---|
getAttribute, getChild, getChildNode, getElementName, getJarEntry, getMandatoryAttribute, getMandatoryChild, getMandatoryChildNode, getMandatoryFirstChildValue, getResource, getRootElement, getRootElement, getSystemResource, getURL, setXmlParser, setXmlParserType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WiredAppReader(java.lang.String filename, java.util.Properties props) throws InitException
filename
- The file to be parsed as an XML wired application descriptor.props
- Configuration properties to be used for the initialization process
InitException
- if the file does not exist or cannot be parsedpublic WiredAppReader(java.util.Properties props) throws InitException
InitException
- if the descriptor could not be found from
the CLASSPATH or cannot be parsed.Method Detail |
---|
protected void checkLinkage(ReferenceMap.Reference ref, AbstractDescriptor desc, java.lang.String compName, java.lang.String refName, java.lang.String globalName) throws InitException
InitException
public java.lang.String locateModuleFromClasspath(java.lang.String rawModuleName)
public java.lang.String locateModule(java.lang.String rawModuleName)
public java.lang.Object[] process() throws InitException
ComponentMap
as its first element and the ResourceFactoryMap
as
its second element.
InitException
- if there occurs any error during assemblypublic java.util.Map registerPermissions(org.w3c.dom.Element appdd) throws InitException
InitException
public java.lang.String[] getModuleNames()
public static void main(java.lang.String[] args) throws InitException
InitException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |