|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.admin.cli.resources.ResourcesXMLParser
public class ResourcesXMLParser
This Class reads the Properties (resources) from the xml file supplied to constructor
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
ResourcesXMLParser(File resourceFile)
Creates new ResourcesXMLParser |
|
ResourcesXMLParser(File resourceFile,
String scope)
Creates new ResourcesXMLParser |
|
| Method Summary | |
|---|---|
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 Resourceobjects that needs to be
created prior to module deployment. |
Iterator<Resource> |
getResources()
Returns an Iterator of Resourceobjects in the order as defined
in the resources XML configuration file. |
List<Resource> |
getResourcesList()
|
InputSource |
resolveEntity(String publicId,
String systemId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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 static final List<String> namingScopes
| Constructor Detail |
|---|
public ResourcesXMLParser(File resourceFile)
throws Exception
Exception
public ResourcesXMLParser(File resourceFile,
String scope)
throws Exception
Exception| Method Detail |
|---|
public Iterator<Resource> getResources()
Resourceobjects in the order as defined
in the resources XML configuration file. Maintained for backward compat
purposes only.
public List<Resource> getResourcesList()
public static List getNonConnectorResourcesList(List<Resource> resources,
boolean isResourceCreation,
boolean ignoreDuplicates)
Resourceobjects that needs to be
created prior to module deployment. This includes all non-Connector
resources and resource-adapter-config
resources - 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 created
resources - 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 EntityResolverSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||