A qualified name identifying a bean socket.
The raw representation of a bean socket qualified name is of the form
BeanQualifiedName():<socketName> where
<socketName> is a valid Java name corresponding to the
name a constructor or setter method argument (eg.
com.example.myModule:myBean:param).
- Author:
- Jeremy Kuhn
-
Field Summary
Fields inherited from class io.inverno.core.compiler.spi.QualifiedName
SEPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionBeanSocketQualifiedName(BeanQualifiedName beanQName, String name)Creates a bean socket qualified name from the specified bean qualified name and socket name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the bean defining the socket.getName()Returns the name of the socket.Returns a simple representation of this qualified name.static BeanSocketQualifiedNamevalueOf(ModuleQualifiedName moduleQName, String qname)Creates a bean socket qualified name from the specified module qualified name and the specified raw value of the form<beanName>:<socketName>where<beanName>and<socketName>are valid Java names.static BeanSocketQualifiedNameCreates a bean socket qualified name from the specified raw value of the formBeanQualifiedName():<socketName>where<socketName>is a valid Java name.Methods inherited from class io.inverno.core.compiler.spi.QualifiedName
equals, getValue, hashCode, normalize, toString, validateQualifiedNamePart
-
Constructor Details
-
BeanSocketQualifiedName
public BeanSocketQualifiedName(BeanQualifiedName beanQName, String name) throws QualifiedNameFormatExceptionCreates a bean socket qualified name from the specified bean qualified name and socket name.
- Parameters:
beanQName- the qualified name of the bean defining the socketname- the name of the socket- Throws:
QualifiedNameFormatException- if the specified socket name is invalid
-
-
Method Details
-
getSimpleValue
Description copied from class:QualifiedNameReturns a simple representation of this qualified name.
Note that this representation is no longer "qualified".
- Specified by:
getSimpleValuein classQualifiedName- Returns:
- a simple representation
-
getBeanQName
Returns the name of the bean defining the socket.
- Returns:
- a bean qualified name
-
getName
Returns the name of the socket.
- Returns:
- the socket name
-
valueOf
Creates a bean socket qualified name from the specified raw value of the form
BeanQualifiedName():<socketName>where<socketName>is a valid Java name.- Parameters:
qname- a raw qualified name- Returns:
- a bean socket qualified name
- Throws:
QualifiedNameFormatException- if the specified value is not a bean socket qualified name
-
valueOf
public static BeanSocketQualifiedName valueOf(ModuleQualifiedName moduleQName, String qname) throws QualifiedNameFormatExceptionCreates a bean socket qualified name from the specified module qualified name and the specified raw value of the form
<beanName>:<socketName>where<beanName>and<socketName>are valid Java names.- Parameters:
moduleQName- a module qualified nameqname- a raw qualified name- Returns:
- a bean socket qualified name
- Throws:
QualifiedNameFormatException- if the specified value is not a bean socket qualified name
-