Interface IDispatcherExtension

All Known Implementing Classes:
DefaultDispatcherExtension

public interface IDispatcherExtension
It is possible to add dispatcher extensions so that the process of finding beans for a name can be extended by adding a dispatcher extension.

This interface is likely to be upgraded in future versions - we recommend to sub-class your implementations from DefaultDispatcherExtension which provides a compatible default behavior in case of upgrading the interface.

Instances of this interface can be adder into the dispatcher management by using DefaultDispatcher.addDispatcherExtension(IDispatcherExtension).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Object
     
  • Method Summary

    Modifier and Type
    Method
    Description
    readObject(IDispatcher dispatcher, String key)
     
  • Field Details

    • NULL

      static final Object NULL
  • Method Details

    • readObject

      Object readObject(IDispatcher dispatcher, String key) throws Exception
      Parameters:
      key -
      Returns:
      The object that is to be used by the dispatcher. If the extension is not responsible, then null is returned. If the extension is responsible, but cannot provide a value then it may return the value NULL, so that it indicates that no value can be provided.
      Throws:
      Exception