Interface SocketBeanInfo

All Superinterfaces:
BeanInfo, Info, ReporterInfo, SocketInfo
All Known Subinterfaces:
MultiSocketBeanInfo, OverridingSocketBeanInfo, SingleSocketBeanInfo

public interface SocketBeanInfo extends BeanInfo, SocketInfo

Base socket bean interface.

A socket bean represents an injection point in a module for beans of type assignable to the socket type.

Author:
Jeremy Kuhn
  • Method Details

    • getSocketType

      TypeMirror getSocketType()

      Returns the actual type of the socket bean.

      This type should not be confused with the type returned by SocketInfo.getType(): the socket type is the type of the interface in a module defining the socket whereas the type is the type of bean that can be plugged into the socket.

      Returns:
      a type
    • getWiredBeans

      BeanQualifiedName[] getWiredBeans()

      Returns the qualified names of all the beans defined in the enclosing directly or indirectly wired to the socket.

      Returns:
      an array of bean qualified names
    • isWired

      boolean isWired()

      Determines whether the socket bean is wired within the module.

      A socket can be wired to a bean defined in the enclosing module or to a socket bean defined in a component module.

      Returns:
      true if the socket is a lazy socket, false otherwise