Class RegistryConfig

java.lang.Object
org.wso2.carbon.application.deployer.config.RegistryConfig

public class RegistryConfig extends Object
This will hold the registry resources config file declarations. This can include resources, collections and associations
  • Field Details

  • Constructor Details

    • RegistryConfig

      public RegistryConfig()
  • Method Details

    • addResource

      public void addResource(String path, String content, String regType, String mediaType)
      Add a resource which belongs to the artifact represented by this component.
      Parameters:
      path - - path at which this resource should be stored
      content - - name of the file to store as a resource
      regType - - 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 stored
      content - - name of the file to store as a resource
      regType - - type of registry to store the resource (local, config or governance)
      mediaType - - mediaType of the registry resource
    • getCollections

      public List<RegistryConfig.Collection> getCollections()
    • addDump

      public void addDump(String path, String content, String regType)
      Add a dump which belongs to the artifact represented by this component.
      Parameters:
      path - - path at which the dump should be stored
      content - - name of the dump file
      regType - - type of registry to store the resource (local, config or governance)
    • addCollection

      public void addCollection(String path, String directory, String regType)
      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 stored
      directory - - name of the root directory to store as a resource
      regType - - type of registry to store the resource (local, config or governance)
    • addCollection

      public void addCollection(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.
      Parameters:
      path - - path at which this collection should be stored
      directory - - name of the root directory to store as a resource
      regType - - type of registry to store the resource (local, config or governance)
    • getAssociations

      public List<RegistryConfig.Association> getAssociations()
    • addAssociation

      public void addAssociation(String sourcePath, String targetPath, String assType, String regType)
      Add an association between two registry resources
      Parameters:
      sourcePath - - source path of the association
      targetPath - - target path of the association
      assType - - type of the association
      regType - - type of registry to add the association (local, config or governance)
    • getResources

      public List<RegistryConfig.Resourse> getResources()
    • getDumps

      public List<RegistryConfig.Dump> getDumps()
    • getExtractedPath

      public String getExtractedPath()
    • setExtractedPath

      public void setExtractedPath(String extractedPath)
    • getParentArtifactName

      public String getParentArtifactName()
    • setParentArtifactName

      public void setParentArtifactName(String parentArtifactName)
    • getConfigFileName

      public String getConfigFileName()
    • setConfigFileName

      public void setConfigFileName(String configFileName)
    • getAppName

      public String getAppName()
    • setAppName

      public void setAppName(String appName)