This finishes the package move by removing the bridge classes.
Change-Id: I7e5519db7be39e8fdb03c9f330ce77a0b6e982b8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
org.opendaylight.mdsal.binding.dom.codec.*,
org.opendaylight.mdsal.binding.dom.codec.gen.impl.*,
org.opendaylight.mdsal.binding.dom.codec.impl.*,
- org.opendaylight.yangtools.binding.data.codec.gen.impl.*,
- org.opendaylight.yangtools.binding.data.codec.impl.*,
;-split-package:=error
</Export-Package>
</instructions>
/**
* Public interface exposed from generator implementation.
*/
-public interface DataObjectSerializerGenerator
- extends org.opendaylight.yangtools.binding.data.codec.gen.impl.DataObjectSerializerGenerator {
+public interface DataObjectSerializerGenerator {
/**
* Get a serializer for a particular type.
*
* @param type Type class
* @return Serializer instance.
*/
- @Override
DataObjectSerializerImplementation getSerializer(Class<?> type);
/**
* Notify the generator that the runtime context has been updated.
* @param runtime New runtime context
*/
- @Override
void onBindingRuntimeContextUpdated(BindingRuntimeContext runtime);
}
BindingNormalizedNodeSerializer {
private static final Logger LOG = LoggerFactory.getLogger(BindingNormalizedNodeCodecRegistry.class);
- private final org.opendaylight.yangtools.binding.data.codec.gen.impl.DataObjectSerializerGenerator generator;
+ private final DataObjectSerializerGenerator generator;
private final LoadingCache<Class<? extends DataObject>, DataObjectSerializer> serializers;
private volatile BindingCodecContext codecContext;
- @Deprecated
- public BindingNormalizedNodeCodecRegistry(final org.opendaylight.yangtools.binding.data.codec.gen.impl.DataObjectSerializerGenerator generator) {
- this.generator = Preconditions.checkNotNull(generator);
- this.serializers = CacheBuilder.newBuilder().weakKeys().build(new GeneratorLoader());
- }
-
public BindingNormalizedNodeCodecRegistry(final DataObjectSerializerGenerator generator) {
this.generator = Preconditions.checkNotNull(generator);
this.serializers = CacheBuilder.newBuilder().weakKeys().build(new GeneratorLoader());
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
/**
- * Thrown when codec was used with data which are not modeled
- * and available in schema used by codec.
+ * Thrown when codec was used with data which are not modeled and available in schema used by codec.
*/
-public class MissingSchemaException extends org.opendaylight.yangtools.binding.data.codec.impl.MissingSchemaException {
+public class MissingSchemaException extends IllegalArgumentException {
private static final long serialVersionUID = 1L;
+++ /dev/null
-/*
- * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.binding.data.codec.gen.impl;
-
-import org.opendaylight.mdsal.binding.generator.util.BindingRuntimeContext;
-import org.opendaylight.yangtools.yang.binding.DataObjectSerializerImplementation;
-
-/**
- * Public interface exposed from generator implementation.
- *
- * @deprecated Use {@link org.opendaylight.mdsal.binding.dom.codec.gen.impl.DataObjectSerializerGenerator} instead.
- */
-@Deprecated
-public interface DataObjectSerializerGenerator {
- /**
- * Get a serializer for a particular type.
- *
- * @param type Type class
- * @return Serializer instance.
- */
- DataObjectSerializerImplementation getSerializer(Class<?> type);
-
- /**
- * Notify the generator that the runtime context has been updated.
- * @param runtime New runtime context
- */
- void onBindingRuntimeContextUpdated(BindingRuntimeContext runtime);
-}
+++ /dev/null
-/*
- * Copyright (c) 2017 Pantheon Technologies, s.r.o. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.binding.data.codec.gen.impl;
-
-import org.opendaylight.mdsal.binding.generator.util.JavassistUtils;
-
-/**
- * @deprecated Use {@link org.opendaylight.mdsal.binding.dom.codec.gen.impl.StreamWriterGenerator} instead.
- */
-@Deprecated
-public class StreamWriterGenerator {
- public static DataObjectSerializerGenerator create(final JavassistUtils utils) {
- return org.opendaylight.mdsal.binding.dom.codec.gen.impl.StreamWriterGenerator.create(utils);
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2017 Pantheon Technologies, s.r.o. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.binding.data.codec.impl;
-
-import org.opendaylight.yangtools.binding.data.codec.gen.impl.DataObjectSerializerGenerator;
-
-/**
- * @deprecated Use {@link org.opendaylight.mdsal.binding.dom.codec.impl.BindingNormalizedNodeCodecRegistry} instead.
- */
-@Deprecated
-public class BindingNormalizedNodeCodecRegistry
- extends org.opendaylight.mdsal.binding.dom.codec.impl.BindingNormalizedNodeCodecRegistry {
-
- public BindingNormalizedNodeCodecRegistry(final DataObjectSerializerGenerator generator) {
- super(generator);
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.binding.data.codec.impl;
-
-/**
- * Thrown when codec was used with data which are not modeled
- * and available in schema used by codec.
- *
- * @deprecated Use {@link org.opendaylight.mdsal.binding.dom.codec.impl.MissingSchemaException} instead.
- */
-@Deprecated
-public class MissingSchemaException extends IllegalArgumentException {
-
- private static final long serialVersionUID = 1L;
-
- protected MissingSchemaException(final String msg) {
- super(msg);
- }
-
- protected MissingSchemaException(final String msg, final Throwable cause) {
- super(msg, cause);
- }
-}