4578585f24709c772865e7a23e171201be538716
[yangtools.git] / yang / yang-data-jaxen / src / main / java / org / opendaylight / yangtools / yang / data / jaxen / JaxenSchemaContextFactory.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. 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 package org.opendaylight.yangtools.yang.data.jaxen;
9
10 import javax.annotation.Nonnull;
11 import org.kohsuke.MetaInfServices;
12 import org.opendaylight.yangtools.yang.data.api.schema.xpath.XPathSchemaContext;
13 import org.opendaylight.yangtools.yang.data.api.schema.xpath.XPathSchemaContextFactory;
14 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
15
16 @MetaInfServices
17 public final class JaxenSchemaContextFactory implements XPathSchemaContextFactory {
18     @Nonnull
19     @Override
20     public XPathSchemaContext createContext(@Nonnull final SchemaContext context) {
21         return new JaxenSchemaContext(context);
22     }
23 }