Class PropertiesStore<ELEMENT extends PropertiesStore.StorableElement,​OBSERVER extends ECPObserver>

    • Constructor Detail

      • PropertiesStore

        public PropertiesStore()
        Default constructor.
    • Method Detail

      • getFolder

        public final java.io.File getFolder()
        Returns:
        The folder, where this property store stores its properties as a File
      • setFolder

        public final void setFolder​(java.io.File folder)
      • doActivate

        protected void doActivate()
                           throws java.lang.Exception
        Overrides:
        doActivate in class org.eclipse.net4j.util.lifecycle.Lifecycle
        Throws:
        java.lang.Exception
      • load

        protected void load()
      • isLoadableElement

        protected boolean isLoadableElement​(java.io.File file)
      • loadElement

        protected abstract ELEMENT loadElement​(java.io.ObjectInput in)
                                        throws java.io.IOException
        Loads an element.
        Parameters:
        in - an ObjectInput to load the element from
        Returns:
        the element
        Throws:
        java.io.IOException - if the element cannot be loaded correctly
      • storeElement

        public void storeElement​(ELEMENT element)
      • getFile

        protected java.io.File getFile​(ELEMENT element)