Class CommonConfig

java.lang.Object
org.glassfish.jersey.model.internal.CommonConfig
All Implemented Interfaces:
Configurable<FeatureContext>, Configuration, FeatureContext, ExtendedConfig
Direct Known Subclasses:
ImmutableCommonConfig

public class CommonConfig extends Object implements FeatureContext, ExtendedConfig
Common immutable Configuration implementation for server and client.
Author:
Michal Gajdos, Marek Potociar
  • Constructor Details

    • 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.
  • Method Details