public class ResourcesXMLParser extends Object implements EntityResolver
Modifier and Type | Field and Description |
---|---|
static String |
JAVA_APP_SCOPE_PREFIX |
static String |
JAVA_COMP_SCOPE_PREFIX |
static String |
JAVA_GLOBAL_SCOPE_PREFIX |
static String |
JAVA_MODULE_SCOPE_PREFIX |
static List<String> |
namingScopes
List of naming scopes
|
Constructor and Description |
---|
ResourcesXMLParser(File resourceFile)
Creates new ResourcesXMLParser
|
ResourcesXMLParser(File resourceFile,
String scope)
Creates new ResourcesXMLParser
|
Modifier and Type | Method and Description |
---|---|
static List |
getConnectorResourcesList(List<Resource> resources,
boolean isResourceCreation,
boolean ignoreDuplicates)
Returns an Iterator of
Resource objects that correspond to
connector resources that needs to be created post module deployment. |
static List |
getNonConnectorResourcesList(List<Resource> resources,
boolean isResourceCreation,
boolean ignoreDuplicates)
Returns an List of
Resource objects that needs to be
created prior to module deployment. |
File |
getResourceFile() |
Iterator<Resource> |
getResources()
Returns an Iterator of
Resource objects in the order as defined
in the resources XML configuration file. |
List<Resource> |
getResourcesList() |
void |
persist(File to)
Persist the XML file.
|
InputSource |
resolveEntity(String publicId,
String systemId) |
void |
updateDocumentNode(Resource originalResource,
Resource modifiedResource) |
public static final String JAVA_APP_SCOPE_PREFIX
public static final String JAVA_COMP_SCOPE_PREFIX
public static final String JAVA_MODULE_SCOPE_PREFIX
public static final String JAVA_GLOBAL_SCOPE_PREFIX
public ResourcesXMLParser(File resourceFile) throws Exception
Exception
public void persist(File to)
to
- target locationpublic void updateDocumentNode(Resource originalResource, Resource modifiedResource)
public File getResourceFile()
public Iterator<Resource> getResources()
Resource
objects in the order as defined
in the resources XML configuration file. Maintained for backward compat
purposes only.public static List getNonConnectorResourcesList(List<Resource> resources, boolean isResourceCreation, boolean ignoreDuplicates)
Resource
objects that needs to be
created prior to module deployment. This includes all non-Connector
resources and resource-adapter-configresources
- List of resources, from which the non connector
resources need to be obtained.isResourceCreation
- indicates if this determination needs to be
done during the PreResCreationPhase
. In the
PreResCreationPhase
, RA config is added to the
non connector list, so that the RA config is created prior to the
RA deployment. For all other purpose, this flag needs to be set to false.public static List getConnectorResourcesList(List<Resource> resources, boolean isResourceCreation, boolean ignoreDuplicates)
Resource
objects that correspond to
connector resources that needs to be created post module deployment. They
are arranged in the order in which the resources needs to be createdresources
- List of resources, from which the non connector
resources need to be obtained.isResourceCreation
- indicates if this determination needs to be
done during the PreResCreationPhase
. In the
PreResCreationPhase
, RA config is added to the
non connector list, so that the RA config is created prior to the
RA deployment. For all other purpose, this flag needs to be set to false.public InputSource resolveEntity(String publicId, String systemId) throws SAXException
resolveEntity
in interface EntityResolver
SAXException
Copyright © 2020. All rights reserved.