2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.data.jaxen;
10 import javax.inject.Inject;
11 import javax.inject.Singleton;
12 import org.eclipse.jdt.annotation.NonNullByDefault;
13 import org.kohsuke.MetaInfServices;
14 import org.opendaylight.yangtools.yang.data.jaxen.api.XPathSchemaContext;
15 import org.opendaylight.yangtools.yang.data.jaxen.api.XPathSchemaContextFactory;
16 import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
17 import org.osgi.service.component.annotations.Activate;
18 import org.osgi.service.component.annotations.Component;
19 import org.osgi.service.component.annotations.Deactivate;
20 import org.slf4j.Logger;
21 import org.slf4j.LoggerFactory;
27 public final class JaxenSchemaContextFactory implements XPathSchemaContextFactory {
28 private static final Logger LOG = LoggerFactory.getLogger(JaxenSchemaContextFactory.class);
31 public JaxenSchemaContextFactory() {
36 public XPathSchemaContext createContext(final EffectiveModelContext context) {
37 return new JaxenSchemaContext(context);
41 @SuppressWarnings("static-method")
43 LOG.info("Jaxen XPathSchemaContextFactory enabled");
47 @SuppressWarnings("static-method")
49 LOG.info("Jaxen XPathSchemaContextFactory disabled");