我正在尝试从Clojure 中的此文件访问常量:
public interface CacheConstants
{
/** This is the name of the config file that we will look for by default. */
String DEFAULT_CONFIG = "/cache.ccf";
/** Delimiter of a cache name component. This is used for hierarchical deletion */
String NAME_COMPONENT_DELIMITER = ":";
}
Clojure 尝试:
(import '[org.apache.jcs.engine.CacheConstants])
org.apache.jcs.engine.CacheConstants/DEFAULT_CONFIG
;; clojure.lang.Compiler$CompilerException: java.lang.ClassNotFoundException: org.apache.jcs.engine.CacheConstants
如何访问这两个值?