Examples of removeAttribute()


Examples of org.springframework.batch.core.scope.context.StepContext.removeAttribute()

   */
  @Override
  public Object remove(String name) {
    StepContext context = getContext();
    logger.debug(String.format("Removing from scope=%s, name=%s", this.getName(), name));
    return context.removeAttribute(name);
  }

  /**
   * Get an attribute accessor in the form of a {@link StepContext} that can
   * be used to store scoped bean instances.
View Full Code Here

Examples of org.springframework.beans.factory.config.BeanDefinition.removeAttribute()

                if (bus != null) {
                    continue;
                }
                inj = getBusForName(busname, factory);
            }
            beanDefinition.removeAttribute(AbstractBeanDefinitionParser.WIRE_BUS_NAME);
            beanDefinition.removeAttribute(AbstractBeanDefinitionParser.WIRE_BUS_ATTRIBUTE);
            if (BusWiringType.PROPERTY == type) {
                beanDefinition.getPropertyValues()
                    .addPropertyValue("bus", inj);
            } else if (BusWiringType.CONSTRUCTOR == type) {
View Full Code Here

Examples of org.springframework.beans.factory.support.AbstractBeanDefinition.removeAttribute()

        }
        if (null != bean)
        {
            if (index == size())
            {
                bean.removeAttribute(MuleHierarchicalBeanDefinitionParserDelegate.MULE_REPEAT_PARSE);
            }
            else
            {
                bean.setAttribute(MuleHierarchicalBeanDefinitionParserDelegate.MULE_REPEAT_PARSE, Boolean.TRUE);
            }
View Full Code Here

Examples of org.springframework.session.data.redis.RedisOperationsSessionRepository.RedisSession.removeAttribute()

    @Test
    public void saveRemoveAttribute() {
        String attrName = "attrName";
        RedisSession session = redisRepository.new RedisSession(new MapSession());
        session.removeAttribute(attrName);
        when(redisOperations.boundHashOps(getKey(session.getId()))).thenReturn(boundHashOperations);
        when(expirationRedisOperations.boundSetOps(anyString())).thenReturn(boundSetOperations);

        redisRepository.save(session);
View Full Code Here

Examples of org.springframework.web.context.request.RequestAttributes.removeAttribute()

        final RequestAttributes attributes = RequestContextHolder.currentRequestAttributes();

        // restore class loader and previous web application context
        Thread.currentThread().setContextClassLoader(info.classLoader);
        if (info.webAppContext == null) {
            attributes.removeAttribute(CONTAINER_REQUEST_ATTRIBUTE, RequestAttributes.SCOPE_REQUEST);
        } else {
            attributes.setAttribute(CONTAINER_REQUEST_ATTRIBUTE, info.webAppContext, RequestAttributes.SCOPE_REQUEST);
        }
    }
View Full Code Here

Examples of org.springframework.web.context.request.WebRequest.removeAttribute()

            if (BLCRequestUtils.isOKtoUseSession(request)) {
                Customer sessionCustomer = (Customer) request.getAttribute(customerAttribute, WebRequest.SCOPE_GLOBAL_SESSION);
                //invalidate the session-based customer if it's there and the ID is the same as the Customer that has been
                //persisted
                if (sessionCustomer != null && sessionCustomer.getId().equals(dbCustomer.getId())) {
                    request.removeAttribute(customerAttribute, WebRequest.SCOPE_GLOBAL_SESSION);
                    request.setAttribute(customerIdAttribute, dbCustomer.getId(), WebRequest.SCOPE_GLOBAL_SESSION);
                }
            }
           
            //Update CustomerState if the persisted Customer ID is the same
View Full Code Here

Examples of org.thymeleaf.dom.Element.removeAttribute()

        }
       
        final NestableNode parent = element.getParent();
       
        final Element inputElement = (Element) element.cloneNode(parent, false);
        inputElement.removeAttribute(attributeName);
       
        inputElement.setAttribute("id", id);
        inputElement.setAttribute("name", name);
        inputElement.setAttribute(
                "value",
View Full Code Here

Examples of org.vectomatic.dom.svg.OMElement.removeAttribute()

    OMElement line;
    synchronized (mLineMap) {
      line = mLineMap.remove(id);
    }
    if (line != null) {
      line.removeAttribute("stroke-dasharray");
    }
  }
 
  /**
   * Stop animating all lines.
View Full Code Here

Examples of org.w3c.dom.Element.removeAttribute()

    File jobFile=null ;
    try{
      Element updatedJob = updatedJobDoc.getDocumentElement();
      jobName = updatedJob.getAttribute("name");
      String fileName = normalizeJobName(jobName);
      updatedJob.removeAttribute("name");
      jobFile = new File(schedulerCronConfigurationDir, fileName+".job.xml");
      OutputStream fout = new FileOutputStream(jobFile,false);         
          OutputStreamWriter out = new OutputStreamWriter(fout, "UTF-8");
      OutputFormat format = new OutputFormat(updatedJobDoc);
      format.setEncoding("UTF-8");
View Full Code Here

Examples of org.w3c.dom.html.HTMLElement.removeAttribute()

        TestUtil.checkError(anytext.getStringValue().equals("hello guy"));
        anytext.setStringValue(CSSPrimitiveValue.CSS_STRING,"hello girl");
        TestUtil.checkError(anytext.getStringValue().equals("hello girl"));
        TestUtil.checkError(anytext.getCssText().equals("\"hello girl\""));

        body.removeAttribute("style");
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.