Class AbstractNamingScheme

    • Constructor Detail

      • AbstractNamingScheme

        public AbstractNamingScheme​(String delimiter)
        Parameters:
        delimiter - The delimiter to use between the prefix and the identifier.
    • Method Detail

      • accept

        public boolean accept​(String id)
        Description copied from interface: NamingScheme
        Determine if this identifier has been prefixed
        Specified by:
        accept in interface NamingScheme
        Parameters:
        id - the id to check
        Returns:
        true if it has been prefixed, false otherwise
      • deprefix

        public org.jboss.weld.serialization.spi.BeanIdentifier deprefix​(String id)
        Description copied from interface: NamingScheme
        Remove the prefix from the id
        Specified by:
        deprefix in interface NamingScheme
        Parameters:
        id - the prefixed id
        Returns:
        the id without the prefix
      • prefix

        public String prefix​(org.jboss.weld.serialization.spi.BeanIdentifier id)
        Description copied from interface: NamingScheme
        Add the prefix to the id
        Specified by:
        prefix in interface NamingScheme
        Parameters:
        id - the id to prefix
        Returns:
        the prefixed id
      • getPrefix

        protected abstract String getPrefix()
      • getDelimiter

        protected String getDelimiter()