public class ResourceUtilities extends Object
Modifier and Type | Method and Description |
---|---|
static Set<Resource> |
getResourceConfigConflicts(Set<Resource> resSet,
Resources resources)
Checks if any of the Resource in the given set has a conflict with
resource definitions in the domain.xml.
|
static void |
getResourceConflictsWithDomainXML(List<Resource> resList,
Resources resources)
Checks if any of the Resource in the given set has a conflict with
resource definitions in the domain.xml.
|
static Set<Resource> |
resolveResourceDuplicatesConflictsWithinArchive(List<SunResourcesXML> sunResList)
Resolves all duplicates and conflicts within an archive and returns a set
of resources that needs to be created for the archive being deployed.
|
public static Set<Resource> getResourceConfigConflicts(Set<Resource> resSet, Resources resources)
resSet
- a Set of Resource elements.resources
- instance of ConfigContext that you want to confirm this against. May not be null.public static Set<Resource> resolveResourceDuplicatesConflictsWithinArchive(List<SunResourcesXML> sunResList) throws ResourceConflictException
Resource
Set
returned.
We currently do not handle any resource conflicts found within the archive
and the method throws an exception when this condition is detected.sunResList
- a list of SunResourcesXML
corresponding to
sun-resources.xml found within an archive.Resource
s that have been resolved of
duplicates and conflicts.org.glassfish.resources.api.ResourceConflictException
- an exception is thrown when an archive is found to
have two or more resources that conflict with each other.ResourceConflictException
public static void getResourceConflictsWithDomainXML(List<Resource> resList, Resources resources) throws ResourceConflictException
resList
- a Set of Resource elements.resources
- all resources from domain.xmlorg.glassfish.resources.api.ResourceConflictException
- an exception is thrown when an archive is found to
have two or more resources that conflict with resources already present in domain.xml.ResourceConflictException
Copyright © 2021. All rights reserved.