public static ThrottleServiceDataHolder getInstance() { if (thisInstance != null && thisInstance.getThrottleProperties() == null) { thisInstance.setThrottleProperties( ThrottleUtil.loadThrottlePropertiesFromConfigurations()); } return thisInstance; }
protected void activate(ComponentContext context) { log.debug("Activating throttle core service component"); if (ThrottleServiceDataHolder.getInstance().getThrottleProperties() == null){ ThrottleServiceDataHolder.getInstance().setThrottleProperties( ThrottleUtil.loadThrottlePropertiesFromConfigurations()); } }