Package org.jboss.modules.xml
Class PermissionsXmlParser
java.lang.Object
org.jboss.modules.xml.PermissionsXmlParser
A simple parser for enterprise-style
permissions.xml
files.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FactoryPermissionCollection
parsePermissionsXml
(InputStream inputStream, ModuleLoader moduleLoader, String moduleName) Parse thepermissions.xml
stream content.static FactoryPermissionCollection
parsePermissionsXml
(XmlPullParser reader, ModuleLoader moduleLoader, String moduleName) Parse thepermissions.xml
content.
-
Constructor Details
-
PermissionsXmlParser
public PermissionsXmlParser()
-
-
Method Details
-
parsePermissionsXml
public static FactoryPermissionCollection parsePermissionsXml(InputStream inputStream, ModuleLoader moduleLoader, String moduleName) throws XmlPullParserException, IOException Parse thepermissions.xml
stream content.- Parameters:
inputStream
- the input streammoduleLoader
- the module loader to load frommoduleName
- the module name to load from- Returns:
- the permission collection (not
null
) - Throws:
IOException
- if the input stream throws an exceptionXmlPullParserException
- if the XML parser throws an exception
-
parsePermissionsXml
public static FactoryPermissionCollection parsePermissionsXml(XmlPullParser reader, ModuleLoader moduleLoader, String moduleName) throws IOException, XmlPullParserException Parse thepermissions.xml
content.- Parameters:
reader
- the parsermoduleLoader
- the module loader to load frommoduleName
- the module name to load from- Returns:
- the permission collection (not
null
) - Throws:
IOException
- if the input stream throws an exceptionXmlPullParserException
- if the XML parser throws an exception
-