Interface BeanRegistryLookup

All Known Implementing Classes:
BeanRegistry

public interface BeanRegistryLookup
Bean-modeling SPI seam that exposes the dictionary-lookup surface the bean-runtime types need without coupling the bean-modeling layer to the marshalling-side BeanRegistry.

Marshalling-side BeanRegistry implements this interface. The bean-modeling-side only sees BeanRegistryLookup when it needs to translate between a raw Class and a polymorphic type name. All operations involving ClassMeta (e.g. getClassMeta(String)) remain on the marshalling-side BeanRegistry itself and are reached only via narrowing casts from marshalling-side call sites.

The bean-modeling layer never instantiates a registry directly — instances are always supplied by the marshalling layer via marshalling-side hooks.

Thread safety
Thread safety depends on implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    Given the specified raw class, return the dictionary name for it, or null if not found.
    boolean
    hasName(String typeName)
    Returns true if this dictionary has an entry for the specified type name.
  • Method Details

    • getTypeName

      Given the specified raw class, return the dictionary name for it, or null if not found.
      Parameters:
      c - The class to lookup in this registry.
      Returns:
      The dictionary name for the specified class, or null if not found.
    • hasName

      boolean hasName(String typeName)
      Returns true if this dictionary has an entry for the specified type name.
      Parameters:
      typeName - The bean type name.
      Returns:
      true if this dictionary has an entry for the specified type name.