Class DefaultBeanId

  • All Implemented Interfaces:
    org.smooks.api.bean.repository.BeanId

    public class DefaultBeanId
    extends Object
    implements org.smooks.api.bean.repository.BeanId
    • Constructor Detail

      • DefaultBeanId

        public DefaultBeanId​(org.smooks.api.bean.context.BeanIdStore beanIdStore,
                             int index,
                             String beanId)
        Parameters:
        index -
        name -
    • Method Detail

      • setCreateResourceConfiguration

        public org.smooks.api.bean.repository.BeanId setCreateResourceConfiguration​(org.smooks.api.resource.config.ResourceConfig createResourceConfig)
        Set the ResourceConfig associated with the BeanInstanceCreator that is creating the bean with which this BeanId instance is associated.
        Specified by:
        setCreateResourceConfiguration in interface org.smooks.api.bean.repository.BeanId
        Parameters:
        createResourceConfig - The ResourceConfig of the creator.
        Returns:
        This object instance.
      • getCreateResourceConfiguration

        public org.smooks.api.resource.config.ResourceConfig getCreateResourceConfiguration()
        Get the ResourceConfig associated with the BeanInstanceCreator that is creating the bean with which this BeanId instance is associated.
        Specified by:
        getCreateResourceConfiguration in interface org.smooks.api.bean.repository.BeanId
        Returns:
        The ResourceConfig of the creator.
      • getIndex

        public int getIndex()
        Returns the index of the place it holds in the BeanIdStore.
        Specified by:
        getIndex in interface org.smooks.api.bean.repository.BeanId
        Returns:
        the index
      • getName

        public String getName()
        Returns the BeanId name.
        Specified by:
        getName in interface org.smooks.api.bean.repository.BeanId
        Returns:
        the name
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getBeanIdStore

        public org.smooks.api.bean.context.BeanIdStore getBeanIdStore()
        Specified by:
        getBeanIdStore in interface org.smooks.api.bean.repository.BeanId