- All Superinterfaces:
BeanInfo,Info,ReporterInfo,SocketInfo
- All Known Subinterfaces:
MultiSocketBeanInfo,OverridingSocketBeanInfo,SingleSocketBeanInfo
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 Summary
Modifier and TypeMethodDescriptionReturns the actual type of the socket bean.Returns the qualified names of all the beans defined in the enclosing directly or indirectly wired to the socket.booleanisWired()Determines whether the socket bean is wired within the module.Methods inherited from interface io.inverno.core.compiler.spi.BeanInfo
getNestedBeans, getQualifiedName, getTypeMethods inherited from interface io.inverno.core.compiler.spi.ReporterInfo
error, hasError, hasWarning, warningMethods inherited from interface io.inverno.core.compiler.spi.SocketInfo
getSelectors, getSocketElement, getType, isOptional, isResolved
-
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
-