Code example for AbstractBeanDefinition

Methods: hashCode

0
    @Override 
    protected String resolveId(Element elem, 
                               AbstractBeanDefinition definition, 
                               ParserContext ctx) 
        throws BeanDefinitionStoreException {
        String id = super.resolveId(elem, definition, ctx);
        if (StringUtils.isEmpty(id)) {
            id = getBeanClass().getName() + "--" + definition.hashCode();
        } 
         
        return id;
    } 
 
    @Override 
    protected boolean hasBusProperty() { 
        return true; 
    } 
     
    @NoJSR250Annotations 
    public static class SpringServerFactoryBean extends ServerFactoryBean