Class Microservice<L,​R extends FactoryBase<L,​R>,​S>

  • Type Parameters:
    R - Root
    S - Summary Data for factory history

    public class Microservice<L,​R extends FactoryBase<L,​R>,​S>
    extends java.lang.Object
    starting point for factoryfx application
    • Method Detail

      • prepareNewFactory

        public DataUpdate<R> prepareNewFactory()
        prepare a new factory which could be used to update data. mainly give it the correct baseVersionId
        Returns:
        new possible factory update with prepared ids/metadata
      • prepareNewFactory

        public DataUpdate<R> prepareNewFactory​(java.lang.String user,
                                               java.lang.String comment)
        prepare a new factory which could be used to update data. mainly give it the correct baseVersionId
        Parameters:
        user - use
        comment - comment
        Returns:
        new possible factory update with prepared ids/metadata
      • getHistoryFactory

        public R getHistoryFactory​(java.lang.String id)
      • getHistoryFactoryList

        public java.util.Collection<StoredDataMetadata<S>> getHistoryFactoryList()
      • start

        public L start()
      • stop

        public void stop()
      • getRootLiveObject

        public L getRootLiveObject()