Class CommonConfig

    • Constructor Detail

      • CommonConfig

        public CommonConfig​(RuntimeType type,
                            Predicate<ContractProvider> registrationStrategy)
        Create a new RuntimeConfig instance.

        The constructor provides a way for defining a contract provider model registration strategy. Once a registration model is built for a newly registered contract, the provided registration strategy filter is consulted whether the model should be registered or not.

        Clients can use the method to cancel any contract provider model registration that does not meet the criteria of a given configuration context, such as a model that does not have any recognized contracts associated with it.

        Parameters:
        type - configuration runtime type.
        registrationStrategy - function driving the decision (based on the introspected contract provider model) whether or not should the component class registration continue towards a successful completion.
      • CommonConfig

        public CommonConfig​(CommonConfig config)
        Copy constructor.
        Parameters:
        config - configurable to copy class properties from.