Added response data to operational datastore, refactored data validation
[packetcable.git] / packetcable-policy-server / src / main / java / org / opendaylight / controller / packetcable / provider / validation / impl / ValidatorProviderFactoryImpl.java
1 /*
2  * Copyright (c) 2015 CableLabs and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.controller.packetcable.provider.validation.impl;
10
11 import org.opendaylight.controller.packetcable.provider.validation.ValidatorProvider;
12 import org.opendaylight.controller.packetcable.provider.validation.ValidatorProviderFactory;
13
14 /**
15  * A ValidatorProviderFactory that returns providers that can handle all known types.
16  *
17  * @author rvail
18  */
19 public class ValidatorProviderFactoryImpl implements ValidatorProviderFactory {
20
21     @Override
22     public ValidatorProvider build() {
23         ValidatorProvider provider = new ValidatorProviderImpl();
24
25         CcapsValidatorProviderFactory.addCcapsValidators(provider);
26         QosValidatorProviderFactory.addQosValidators(provider);
27
28         return provider;
29     }
30 }