Class BeanSocketQualifiedName

java.lang.Object
io.inverno.core.compiler.spi.QualifiedName
io.inverno.core.compiler.spi.BeanSocketQualifiedName

public class BeanSocketQualifiedName extends QualifiedName

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
  • Constructor Details

    • BeanSocketQualifiedName

      public BeanSocketQualifiedName(BeanQualifiedName beanQName, String name) throws QualifiedNameFormatException

      Creates a bean socket qualified name from the specified bean qualified name and socket name.

      Parameters:
      beanQName - the qualified name of the bean defining the socket
      name - the name of the socket
      Throws:
      QualifiedNameFormatException - if the specified socket name is invalid
  • Method Details

    • getSimpleValue

      public String getSimpleValue()
      Description copied from class: QualifiedName

      Returns a simple representation of this qualified name.

      Note that this representation is no longer "qualified".

      Specified by:
      getSimpleValue in class QualifiedName
      Returns:
      a simple representation
    • getBeanQName

      public BeanQualifiedName getBeanQName()

      Returns the name of the bean defining the socket.

      Returns:
      a bean qualified name
    • getName

      public String getName()

      Returns the name of the socket.

      Returns:
      the socket name
    • valueOf

      public static BeanSocketQualifiedName valueOf(String qname) throws QualifiedNameFormatException

      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 QualifiedNameFormatException

      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.

      Parameters:
      moduleQName - a module qualified name
      qname - a raw qualified name
      Returns:
      a bean socket qualified name
      Throws:
      QualifiedNameFormatException - if the specified value is not a bean socket qualified name