Class RegistryConfig
java.lang.Object
org.wso2.carbon.application.deployer.config.RegistryConfig
This will hold the registry resources config file declarations. This can include resources,
collections and associations
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThis class represents an association in a the reg-config.xmlclassThis class represents a collection in a the reg-config.xmlclassThis class represents a dump in a the reg-config.xmlclassThis class represents a resource in a the reg-config.xml -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAssociation(String sourcePath, String targetPath, String assType, String regType) Add an association between two registry resourcesvoidaddCollection(String path, String directory, String regType) Add a directory and all it's contents which belongs to the artifact represented by this component.voidaddCollection(String path, String directory, String regType, Properties properties) Add a directory and all it's contents which belongs to the artifact represented by this component.voidAdd a dump which belongs to the artifact represented by this component.voidaddResource(String path, String content, String regType, String mediaType) Add a resource which belongs to the artifact represented by this component.voidaddResource(String path, String content, String regType, String mediaType, Properties properties) Add a resource which belongs to the artifact represented by this component.getDumps()voidsetAppName(String appName) voidsetConfigFileName(String configFileName) voidsetExtractedPath(String extractedPath) voidsetParentArtifactName(String parentArtifactName)
-
Field Details
-
FILE
- See Also:
-
ITEM
- See Also:
-
DUMP
- See Also:
-
COLLECTION
- See Also:
-
ASSOCIATION
- See Also:
-
PATH
- See Also:
-
DIRECTORY
- See Also:
-
SOURCE_PATH
- See Also:
-
TARGET_PATH
- See Also:
-
TYPE
- See Also:
-
REGISTRY_TYPE
- See Also:
-
MEDIA_TYPE
- See Also:
-
LOCAL_REGISTRY
- See Also:
-
CONFIG_REGISTRY
- See Also:
-
GOVERNANCE_REGISTRY
- See Also:
-
-
Constructor Details
-
RegistryConfig
public RegistryConfig()
-
-
Method Details
-
addResource
Add a resource which belongs to the artifact represented by this component.- Parameters:
path- - path at which this resource should be storedcontent- - name of the file to store as a resourceregType- - type of registry to store the resource (local, config or governance)mediaType- - mediaType of the registry resource
-
addResource
public void addResource(String path, String content, String regType, String mediaType, Properties properties) Add a resource which belongs to the artifact represented by this component.- Parameters:
path- - path at which this resource should be storedcontent- - name of the file to store as a resourceregType- - type of registry to store the resource (local, config or governance)mediaType- - mediaType of the registry resource
-
getCollections
-
addDump
Add a dump which belongs to the artifact represented by this component.- Parameters:
path- - path at which the dump should be storedcontent- - name of the dump fileregType- - type of registry to store the resource (local, config or governance)
-
addCollection
Add a directory and all it's contents which belongs to the artifact represented by this component.- Parameters:
path- - path at which this collection should be storeddirectory- - name of the root directory to store as a resourceregType- - type of registry to store the resource (local, config or governance)
-
addCollection
Add a directory and all it's contents which belongs to the artifact represented by this component.- Parameters:
path- - path at which this collection should be storeddirectory- - name of the root directory to store as a resourceregType- - type of registry to store the resource (local, config or governance)
-
getAssociations
-
addAssociation
Add an association between two registry resources- Parameters:
sourcePath- - source path of the associationtargetPath- - target path of the associationassType- - type of the associationregType- - type of registry to add the association (local, config or governance)
-
getResources
-
getDumps
-
getExtractedPath
-
setExtractedPath
-
getParentArtifactName
-
setParentArtifactName
-
getConfigFileName
-
setConfigFileName
-
getAppName
-
setAppName
-