// Path: core/src/main/java/org/mvcspec/ozark/bootstrap/ConfigProvider.java
// public interface ConfigProvider {
// 
//     void configure(FeatureContext context);
// 
// }
// 
// Path: resteasy/src/main/java/org/mvcspec/ozark/resteasy/validation/OzarkValidationResolver.java
// public class OzarkValidationResolver implements ContextResolver<GeneralValidator> {
// 
//     public GeneralValidator getContext(Class<?> aClass) {
// 
//         // get the real RESTEasy validator
//         GeneralValidator wrapped = new ValidatorContextResolver().getContext(aClass);
// 
//         // only delegate to wrapped validator for regular JAX-RS requests
//         return new OzarkGeneralValidator(wrapped);
// 
//     }
// 
// }


import org.mvcspec.ozark.bootstrap.ConfigProvider;
import org.mvcspec.ozark.resteasy.validation.OzarkValidationResolver;
import javax.ws.rs.core.FeatureContext;
/*
 * Copyright © 2017 Ivar Grimstad (ivar.grimstad@gmail.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.mvcspec.ozark.resteasy.bootstrap;



/**
 * Implementation of ConfigProvider for the RESTEasy module.
 *
 * @author Christian Kaltepoth
 */
public class RestEasyConfigProvider implements ConfigProvider {

    @Override
    public void configure(FeatureContext context) {
// Path: core/src/main/java/org/mvcspec/ozark/bootstrap/ConfigProvider.java
// public interface ConfigProvider {
// 
//     void configure(FeatureContext context);
// 
// }
// 
// Path: resteasy/src/main/java/org/mvcspec/ozark/resteasy/validation/OzarkValidationResolver.java
// public class OzarkValidationResolver implements ContextResolver<GeneralValidator> {
// 
//     public GeneralValidator getContext(Class<?> aClass) {
// 
//         // get the real RESTEasy validator
//         GeneralValidator wrapped = new ValidatorContextResolver().getContext(aClass);
// 
//         // only delegate to wrapped validator for regular JAX-RS requests
//         return new OzarkGeneralValidator(wrapped);
// 
//     }
// 
// }


// Path: resteasy/src/main/java/org/mvcspec/ozark/resteasy/bootstrap/RestEasyConfigProvider.java
import org.mvcspec.ozark.bootstrap.ConfigProvider;
import org.mvcspec.ozark.resteasy.validation.OzarkValidationResolver;
import javax.ws.rs.core.FeatureContext;

/*
 * Copyright © 2017 Ivar Grimstad (ivar.grimstad@gmail.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.mvcspec.ozark.resteasy.bootstrap;



/**
 * Implementation of ConfigProvider for the RESTEasy module.
 *
 * @author Christian Kaltepoth
 */
public class RestEasyConfigProvider implements ConfigProvider {

    @Override
    public void configure(FeatureContext context) {
        context.register(OzarkValidationResolver.class);