Interface NCModelFactory

  • All Known Implementing Classes:
    NCBasicModelFactory, NCSpringModelFactory

    public interface NCModelFactory
    Optional factory for data models. Model factory is an optional mechanism for model creation. It is necessary when you want to use some external framework to inject dependencies and configure the data model externally, e.g. Spring-based factory and configuration.

    Read full documentation in Data Model section and review examples.

    • Method Detail

      • initialize

        void initialize​(Map<String,​String> props)
        Initializes this factory with properties specified in probe configuration.
        props - Configuration properties.
      • mkModel

        NCModel mkModel​(Class<? extends NCModel> type)
        Constructs a model instance.
        type - Model type.
      • terminate

        void terminate()
        Terminates this factory when probe stops.