code
@IocBean(name = "$aop_autoLoadCache")
public class AutoLoadCacheAopConfigration extends SimpleAopMaker<Cache> {
@Inject
private AbstractCacheManager cachePointCut;
}
获得的对象地址与通过
public AbstractCacheManager getCacheManagerByName(HttpServletRequest req, String cacheManagerName) {
AbstractCacheManager cacheManager = getIoc().get(ShardedCachePointCut.class, "cachePointCut");
AutoLoadTO queue[] = cacheManager.getAutoLoadHandler().getAutoLoadQueue();
if (null == queue || queue.length == 0) {
log.error(cacheManager);
log.error(cacheManager.getAutoLoadHandler());
log.error("queue empty");
}
return cacheManager;
}
private Ioc getIoc() {
if (this.ioc == null) {
this.ioc = Mvcs.getIoc();
}
return this.ioc;
}