Interface IServiceRegistrationBuilder<T>

    • Method Detail

      • withProperty

        IServiceRegistrationBuilder<T> withProperty​(String key,
                                                    Object value)
        Associate the given property with registering service. All builded properties will be combined.
        Parameters:
        key - the property String key, cannot be null
        value - the property value, cannot be null
        Returns:
        a reference to this builder, never null
      • withProperties

        IServiceRegistrationBuilder<T> withProperties​(Map<String,​?> properties)
        Associate the given properties map with registering service. All builded properties will be combined.
        Parameters:
        properties - the properties map, cannot be null
        Returns:
        a reference to this builder, never null
      • registerInstance

        void registerInstance​(T instance)
        Register the given instance to the builder service interface.
        Parameters:
        instance - the instance of service to register, cannot be null