Class ConductorConfig

    • Method Detail

      • getResourceLoader

        public Optional<Function<String,​Reader>> getResourceLoader()
        Gets loader of resource(optional).
        Returns:
        The loader of resource or parent's one
      • getOperatorFactory

        public Optional<OperatorFactory> getOperatorFactory()
        Gets factory of operator(optional).
        Returns:
        The factory of operators
      • getOperator

        public Optional<DataGrainOperator> getOperator​(String name)
        Gets operator by various sources. Priority of fetching:
        1. Fetches from named operator
        2. Fetches by operator factory(if provided)
        3. Fetches from named operator of parent
        4. Fetches by operator factory of parent(if provided)
        Parameters:
        name - The name of operator
        Returns:
        matched operator
      • getDecorator

        public Optional<DataGrainDecorator> getDecorator​(String name)
        Gets decorator by various sources. Priority of fetching:
        1. Fetches from named decorator
        2. Fetches from named decorator of parent
        Parameters:
        name - The name of decorator
        Returns:
        matched decorator
      • getSupplier

        public Optional<Supplier<?>> getSupplier​(String name)
        Gets supplier by various sources. Priority of fetching:
        1. Fetches from named supplier
        2. Fetches from named supplier of parent
        Parameters:
        name - The name of supplier
        Returns:
        matched supplier
      • getJdbcFunction

        public Optional<JdbcFunction<Connection,​?>> getJdbcFunction​(String name)
        Gets JDBC function by various sources. Priority of fetching:
        1. Fetches from named JDBC function
        2. Fetches from named JDBC function of parent
        Parameters:
        name - The name of JDBC function
        Returns:
        matched JDBC function