Java 类org.simpleframework.xml.util.LimitedCache 实例源码

项目:simplexml    文件:ExpressionBuilder.java   
/**
 * Constructor for the <code>ExpressionBuilder</code>. This is
 * used to create a builder to cache frequently requested XPath
 * expressions. Such caching improves the overall performance.
 * 
 * @param detail the details for the the class with expressions
 * @param support this contains various support functions
 */
public ExpressionBuilder(Detail detail, Support support) {
   this.cache = new LimitedCache<Expression>();
   this.format = support.getFormat();
   this.type = detail.getType();
}
项目:simple-xml    文件:ExpressionBuilder.java   
/**
 * Constructor for the <code>ExpressionBuilder</code>. This is
 * used to create a builder to cache frequently requested XPath
 * expressions. Such caching improves the overall performance.
 * 
 * @param detail the details for the the class with expressions
 * @param support this contains various support functions
 */
public ExpressionBuilder(Detail detail, Support support) {
   this.cache = new LimitedCache<Expression>();
   this.format = support.getFormat();
   this.type = detail.getType();
}