A qualified name identifying a bean.
The raw representation of a bean qualified name is of the form
ModuleQualifiedName():<beanName> where
<beanName> is a valid Java name (eg.
com.example.myModule:myBean).
The name of a bean is tightly linked to the name of the corresponding Java class.
- Author:
- Jeremy Kuhn
-
Field Summary
Fields inherited from class io.inverno.core.compiler.spi.QualifiedName
SEPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionBeanQualifiedName(ModuleQualifiedName moduleQName, String beanName) Creates a bean qualified name from the specified module qualified name and bean name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the bean.Returns the qualified name of the module defining the bean.Returns a simple representation of this qualified name.static BeanQualifiedNameCreates a bean qualified name from the specified raw value of the formModuleQualifiedName():<beanName>where<beanName>is a valid Java name.Methods inherited from class io.inverno.core.compiler.spi.QualifiedName
equals, getValue, hashCode, normalize, toString, validateQualifiedNamePart
-
Constructor Details
-
BeanQualifiedName
public BeanQualifiedName(ModuleQualifiedName moduleQName, String beanName) throws QualifiedNameFormatException Creates a bean qualified name from the specified module qualified name and bean name.
- Parameters:
moduleQName- the qualified name of the module defining the beanbeanName- the name of the bean- Throws:
QualifiedNameFormatException- if the specified bean 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
-
getModuleQName
Returns the qualified name of the module defining the bean.
- Returns:
- a module qualified name
-
getBeanName
Returns the name of the bean.
- Returns:
- the bean name.
-
valueOf
Creates a bean qualified name from the specified raw value of the form
ModuleQualifiedName():<beanName>where<beanName>is a valid Java name.- Parameters:
qname- a raw qualified name- Returns:
- a bean qualified name
- Throws:
QualifiedNameFormatException- if the specified value is not a bean qualified name
-