/** * Create new entity provider model. * * NOTE: The constructor is package private on purpose as we do not support extensions of this class from another package. * * @param provider entity provider instance. * @param declaredTypes declared supported media types. * @param custom custom flag; {@code true} is the provider is custom, {@code false} if the provider is one of the * default Jersey providers. * @param providerType parameterized entity provider type (used to retrieve the provided Java type). */ AbstractEntityProviderModel(final T provider, final List<MediaType> declaredTypes, final boolean custom, final Class<T> providerType) { this.provider = provider; this.declaredTypes = declaredTypes; this.custom = custom; this.providedType = getProviderClassParam(provider, providerType); }
/** * Create new entity provider model. * * NOTE: The constructor is package private on purpose as we do not support extensions of this class from another package. * * @param provider entity provider instance. * @param declaredTypes declared supported media types. * @param custom custom flag; {@code true} is the provider is custom, {@code false} if the provider is one of the * default Jersey providers. * @param providerType parameterized entity provider type (used to retrieve the provided Java type). */ AbstractEntityProviderModel(final T provider, final List<MediaType> declaredTypes, final boolean custom, final Class<T> providerType) { this.provider = provider; this.declaredTypes = declaredTypes; this.custom = custom; this.providedType = getProviderClassParam(provider, providerType); }
/** * Create new entity provider model. * * NOTE: The constructor is package private on purpose as we do not support extensions of this class from another package. * * @param provider entity provider instance. * @param declaredTypes declared supported media types. * @param custom custom flag; {@code true} is the provider is custom, {@code false} if the provider is one of the * default Jersey providers. * @param providerType parameterized entity provider type (used to retrieve the provided Java type). */ AbstractEntityProviderModel(final T provider, final List<MediaType> declaredTypes, final boolean custom, final Class<T> providerType) { this.provider = provider; this.declaredTypes = declaredTypes; this.custom = custom; this.providedType = getProviderClassParam(provider, providerType); }
/** * Create new entity provider model. * * NOTE: The constructor is package private on purpose as we do not support extensions of this class from another package. * * @param provider entity provider instance. * @param declaredTypes declared supported media types. * @param custom custom flag; {@code true} is the provider is custom, {@code false} if the provider is one of the * default Jersey providers. * @param providerType parameterized entity provider type (used to retrieve the provided Java type). */ AbstractEntityProviderModel(final T provider, final List<MediaType> declaredTypes, final boolean custom, final Class<T> providerType) { this.provider = provider; this.declaredTypes = declaredTypes; this.custom = custom; this.providedType = getProviderClassParam(provider, providerType); }
/** * Create new entity provider model. * * NOTE: The constructor is package private on purpose as we do not support extensions of this class from another package. * * @param provider entity provider instance. * @param declaredTypes declared supported media types. * @param custom custom flag; {@code true} is the provider is custom, {@code false} if the provider is one of the * default Jersey providers. * @param providerType parameterized entity provider type (used to retrieve the provided Java type). */ AbstractEntityProviderModel(final T provider, final List<MediaType> declaredTypes, final boolean custom, final Class<T> providerType) { this.provider = provider; this.declaredTypes = declaredTypes; this.custom = custom; this.providedType = getProviderClassParam(provider, providerType); }
/** * Create new entity provider model. * * NOTE: The constructor is package private on purpose as we do not support extensions of this class from another package. * * @param provider entity provider instance. * @param declaredTypes declared supported media types. * @param custom custom flag; {@code true} is the provider is custom, {@code false} if the provider is one of the * default Jersey providers. * @param providerType parameterized entity provider type (used to retrieve the provided Java type). */ AbstractEntityProviderModel(final T provider, final List<MediaType> declaredTypes, final boolean custom, final Class<T> providerType) { this.provider = provider; this.declaredTypes = declaredTypes; this.custom = custom; this.providedType = getProviderClassParam(provider, providerType); }
/** * Create new entity provider model. * * NOTE: The constructor is package private on purpose as we do not support extensions of this class from another package. * * @param provider entity provider instance. * @param declaredTypes declared supported media types. * @param custom custom flag; {@code true} is the provider is custom, {@code false} if the provider is one of the * default Jersey providers. * @param providerType parameterized entity provider type (used to retrieve the provided Java type). */ AbstractEntityProviderModel(final T provider, final List<MediaType> declaredTypes, final boolean custom, final Class<T> providerType) { this.provider = provider; this.declaredTypes = declaredTypes; this.custom = custom; this.providedType = getProviderClassParam(provider, providerType); }