thrownewIllegalArgumentException("interceptors can not be null.");
}
for(Interceptorinter:inters){
if(inter==null){
thrownewIllegalArgumentException("interceptor can not be null.");
}
if(singletonMap.containsKey(inter.getClass())){
thrownewIllegalArgumentException("interceptor already exists, interceptor must be singlton, do not create more then one instance of the same Interceptor Class.");
thrownewIllegalArgumentException("interceptors can not be null.");
}
for(Interceptorinter:inters){
if(inter==null){
thrownewIllegalArgumentException("interceptor can not be null.");
}
if(singletonMap.containsKey(inter.getClass())){
thrownewIllegalArgumentException("interceptor already exists, interceptor must be singlton, do not create more then one instance of the same Interceptor Class.");