public Builder(String name, String className) { target = new InterceptorConfig(name, className); }
public Builder addInterceptorConfig(InterceptorConfig config) { target.interceptorConfigs.put(config.getName(), config); return this; }
public Interceptor buildInterceptor(InterceptorConfig interceptorConfig, Map<String, String> interceptorRefParams) throws ConfigurationException { String interceptorClassName = interceptorConfig.getClassName(); Map<String, String> thisInterceptorClassParams = interceptorConfig.getParams(); Map<String, String> params = (thisInterceptorClassParams == null) ? new HashMap<String, String>() : new HashMap<String, String>(thisInterceptorClassParams); params.putAll(interceptorRefParams);
PackageConfig packageConfig = Dispatcher.getInstance().getConfigurationManager().getConfiguration().getPackageConfig("default"); Map<String, Object> interceptorConfigs = packageConfig.getInterceptorConfigs(); InterceptorConfig interceptorConfig = (InterceptorConfig)interceptorConfigs.get("theInterceptor"); Map<String, String> params = interceptorConfig.getParams();
if (LOG.isWarnEnabled()) { LOG.warn("Unable to load config class #0 at #1 probably due to a missing jar, which might be fine if you never plan to use the #2 interceptor", config.getClassName(), ex.getLocation().toString(), config.getName());
public Interceptor buildInterceptor(InterceptorConfig interceptorConfig, Map interceptorRefParams) throws ConfigurationException { String interceptorClassName = interceptorConfig.getClassName(); Map thisInterceptorClassParams = interceptorConfig.getParams(); Map params = (thisInterceptorClassParams == null) ? new HashMap() : new HashMap(thisInterceptorClassParams); params.putAll(interceptorRefParams);
public Builder(InterceptorConfig orig) { target = new InterceptorConfig(orig); }
public InterceptorConfig build() { embalmTarget(); InterceptorConfig result = target; target = new InterceptorConfig(target); return result; }