Java源码示例:com.sun.xml.internal.messaging.saaj.util.ParserPool
示例1
@Override
protected ParserPool initialValue() throws Exception {
Integer poolSize = AccessController.doPrivileged(
new PrivilegedAction<Integer>() {
@Override
public Integer run() {
try {
return Integer.getInteger(
SAX_PARSER_POOL_SIZE_PROP_NAME,
DEFAULT_SAX_PARSER_POOL_SIZE);
} catch (SecurityException se) {
return DEFAULT_SAX_PARSER_POOL_SIZE;
}
}
});
return new ParserPool(poolSize);
}
示例2
@Override
protected ParserPool initialValue() throws Exception {
return new ParserPool(5);
}
示例3
@Override
protected ParserPool initialValue() throws Exception {
return new ParserPool(5);
}
示例4
@Override
protected ParserPool initialValue() throws Exception {
return new ParserPool(5);
}
示例5
@Override
protected ParserPool initialValue() throws Exception {
return new ParserPool(5);
}
示例6
@Override
protected ParserPool initialValue() throws Exception {
return new ParserPool(5);
}