Class BeanStore


  • @Lifecycle(REQUEST)
    public class BeanStore
    extends java.lang.Object
    Ein Store zum bequemen Lesen und Speichern von JAXB-tauglichen Beans.
    • Constructor Summary

      Constructors 
      Constructor Description
      BeanStore()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> BeanContainer<T> load​(java.lang.Class<T> type, boolean encrypted)
      Erzeugt einen neuen leeren Bean-Container.
      void store​(BeanContainer container)
      Speichert einen Bean-Container.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BeanStore

        public BeanStore()
    • Method Detail

      • load

        public <T> BeanContainer<T> load​(java.lang.Class<T> type,
                                         boolean encrypted)
                                  throws de.willuhn.util.ApplicationException
        Erzeugt einen neuen leeren Bean-Container.
        Parameters:
        type - der konkrete Typ der Beans.
        encrypted - true, wenn der Beanstore verschluesselt speichern soll.
        Returns:
        der erzeugte Bean-Container.
        Throws:
        de.willuhn.util.ApplicationException
      • store

        public void store​(BeanContainer container)
                   throws de.willuhn.util.ApplicationException
        Speichert einen Bean-Container.
        Parameters:
        container - der zu speichernde Container.
        Throws:
        de.willuhn.util.ApplicationException