All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.protostream.descriptors.namespace.CompositeNamespace Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.protostream.descriptors.namespace;

import org.infinispan.protostream.descriptors.GenericDescriptor;

/**
 * @author [email protected]
 * @since 3.1
 */
abstract class CompositeNamespace implements Namespace {

   @Override
   public GenericDescriptor get(String name) {
      Namespace[] namespaces = getNamespaces();
      if (namespaces != null) {
         for (Namespace n : namespaces) {
            GenericDescriptor d = n.get(name);
            if (d != null) {
               return d;
            }
         }
      }
      return null;
   }

   protected abstract Namespace[] getNamespaces();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy