Class MicroIntegratorRegistry

  • All Implemented Interfaces:
    org.apache.synapse.registry.Registry

    public class MicroIntegratorRegistry
    extends org.apache.synapse.registry.AbstractRegistry
    • Constructor Detail

      • MicroIntegratorRegistry

        public MicroIntegratorRegistry()
    • Method Detail

      • init

        public void init​(Properties properties)
        Specified by:
        init in interface org.apache.synapse.registry.Registry
        Overrides:
        init in class org.apache.synapse.registry.AbstractRegistry
      • lookup

        public org.apache.axiom.om.OMNode lookup​(String key)
      • isResourceExists

        public boolean isResourceExists​(String key)
      • lookupProperties

        public Properties lookupProperties​(String key)
        The micro integrator expects the properties of a directory to be available inside the given directory as a property file. For an example, if a directory key, conf:/foo/bar is passed as the key, the micro integrator registry expects the properties to be available in the file, conf:/foo/bar/bar.properties. For a file, conf:/foo/bar/example.xml, the properties need to be given in the file, conf:/foo/bar/example.xml.properties
        Parameters:
        key - the path to the directory
        Returns:
        the properties defined
      • getRegistryEntry

        public org.apache.synapse.registry.RegistryEntry getRegistryEntry​(String key)
      • lookupFormat

        public org.apache.axiom.om.OMNode lookupFormat​(String key)
      • getChildren

        public org.apache.synapse.registry.RegistryEntry[] getChildren​(org.apache.synapse.registry.RegistryEntry entry)
      • getDescendants

        public org.apache.synapse.registry.RegistryEntry[] getDescendants​(org.apache.synapse.registry.RegistryEntry entry)
      • delete

        public void delete​(String path)
      • newResource

        public void newResource​(String path,
                                boolean isDirectory)
      • newNonEmptyResource

        public void newNonEmptyResource​(String path,
                                        boolean isDirectory,
                                        String mediaType,
                                        String content,
                                        String propertyName)
      • updateResource

        public void updateResource​(String path,
                                   Object value)
        Updates the registry resource pointed by the given key.
        Parameters:
        path - Key of the resource to be updated
        value - New value of the resource
      • updateRegistryEntry

        public void updateRegistryEntry​(org.apache.synapse.registry.RegistryEntry entry)
      • getResourceProperties

        public Properties getResourceProperties​(String entryKey)
        Specified by:
        getResourceProperties in interface org.apache.synapse.registry.Registry
        Overrides:
        getResourceProperties in class org.apache.synapse.registry.AbstractRegistry