Class StoreRegistry


  • public class StoreRegistry
    extends Object
    Central StoreRegistry for all server.xml elements
    • Constructor Detail

      • StoreRegistry

        public StoreRegistry()
    • Method Detail

      • getName

        public String getName()
        Returns:
        Returns the name.
      • setName

        public void setName​(String name)
        Parameters:
        name - The name to set.
      • getVersion

        public String getVersion()
        Returns:
        Returns the version.
      • setVersion

        public void setVersion​(String version)
        Parameters:
        version - The version to set.
      • findDescription

        public StoreDescription findDescription​(String id)
        Find a description for id. Handle interface search when no direct match found.
        Parameters:
        id - The class name
        Returns:
        The description
      • findDescription

        public StoreDescription findDescription​(Class<?> aClass)
        Find Description by class.
        Parameters:
        aClass - The class
        Returns:
        The description
      • findStoreFactory

        public IStoreFactory findStoreFactory​(String aClassName)
        Find factory from class name.
        Parameters:
        aClassName - The class name
        Returns:
        The factory
      • findStoreFactory

        public IStoreFactory findStoreFactory​(Class<?> aClass)
        Find factory from class.
        Parameters:
        aClass - The class
        Returns:
        The factory
      • registerDescription

        public void registerDescription​(StoreDescription desc)
        Register a new description.
        Parameters:
        desc - New description
      • unregisterDescription

        public StoreDescription unregisterDescription​(StoreDescription desc)
        Unregister a description.
        Parameters:
        desc - The description
        Returns:
        the description, or null if it was not registered
      • getEncoding

        public String getEncoding()
        Returns:
        The encoding
      • setEncoding

        public void setEncoding​(String string)
        Set the encoding to use when writing the configuration files.
        Parameters:
        string - The encoding