public void initialize(DataCacheManager manager) { if (_schedule != null && !"".equals(_schedule)) { ClearableScheduler scheduler = manager.getClearableScheduler(); if (scheduler != null) scheduler.scheduleEviction(this, _schedule); } // Cast here rather than add to the interface because this is a hack to support an older way of configuring if(manager instanceof DataCacheManagerImpl){ List<String> invalidConfigured = new ArrayList<String>(); // assert that things are configured properly if(_includedTypes!=null){ for(String s : _includedTypes){ if(_excludedTypes.contains(s)){ invalidConfigured.add(s); } } if (invalidConfigured.size() > 0) { throw new GeneralException(s_loc.get("invalid-types-excluded-types", invalidConfigured.toString())); } } ((DataCacheManagerImpl)manager).setTypes(_includedTypes, _excludedTypes); } }
public void initialize(DataCacheManager manager) { if (_schedule != null && !"".equals(_schedule)) { ClearableScheduler scheduler = manager.getClearableScheduler(); if (scheduler != null) scheduler.scheduleEviction(this, _schedule); } // Cast here rather than add to the interface because this is a hack to support an older way of configuring if(manager instanceof DataCacheManagerImpl){ List<String> invalidConfigured = new ArrayList<String>(); // assert that things are configured properly if(_includedTypes!=null){ for(String s : _includedTypes){ if(_excludedTypes.contains(s)){ invalidConfigured.add(s); } } if (invalidConfigured.size() > 0) { throw new GeneralException(s_loc.get("invalid-types-excluded-types", invalidConfigured.toString())); } } ((DataCacheManagerImpl)manager).setTypes(_includedTypes, _excludedTypes); } }
public void initialize(DataCacheManager manager) { if (_schedule != null && !"".equals(_schedule)) { ClearableScheduler scheduler = manager.getClearableScheduler(); if (scheduler != null) scheduler.scheduleEviction(this, _schedule); } // Cast here rather than add to the interface because this is a hack to support an older way of configuring if(manager instanceof DataCacheManagerImpl){ List<String> invalidConfigured = new ArrayList<String>(); // assert that things are configured properly if(_includedTypes!=null){ for(String s : _includedTypes){ if(_excludedTypes.contains(s)){ invalidConfigured.add(s); } } if (invalidConfigured.size() > 0) { throw new GeneralException(s_loc.get("invalid-types-excluded-types", invalidConfigured.toString())); } } ((DataCacheManagerImpl)manager).setTypes(_includedTypes, _excludedTypes); } }
public void initialize(DataCacheManager manager) { if (_schedule != null && !"".equals(_schedule)) { ClearableScheduler scheduler = manager.getClearableScheduler(); if (scheduler != null) scheduler.scheduleEviction(this, _schedule); } // Cast here rather than add to the interface because this is a hack to support an older way of configuring if(manager instanceof DataCacheManagerImpl){ List<String> invalidConfigured = new ArrayList<String>(); // assert that things are configured properly if(_includedTypes!=null){ for(String s : _includedTypes){ if(_excludedTypes.contains(s)){ invalidConfigured.add(s); } } if (invalidConfigured.size() > 0) { throw new GeneralException(s_loc.get("invalid-types-excluded-types", invalidConfigured.toString())); } } ((DataCacheManagerImpl)manager).setTypes(_includedTypes, _excludedTypes); } }