TranslationResults results = new TranslationResults();
if( hasTotalClassLevelOrdering ) {
for(String next : totalClassLevelOrdering ) {
EjbInterceptor interceptor =
ejbBundle.getInterceptorByClassName(next);
results.allInterceptorClasses.add(interceptor);
results.classInterceptorChain.add(interceptor);
}
} else {
for(String next : defaultInterceptorChain) {
EjbInterceptor interceptor =
ejbBundle.getInterceptorByClassName(next);
results.allInterceptorClasses.add(interceptor);
results.classInterceptorChain.add(interceptor);
}
for(String next : classInterceptorChain) {
EjbInterceptor interceptor =
ejbBundle.getInterceptorByClassName(next);
results.allInterceptorClasses.add(interceptor);
results.classInterceptorChain.add(interceptor);
}
}
for(MethodDescriptor nextMethod : methodInterceptorsMap.keySet()) {
List<String> interceptorClassChain = (List<String>)
methodInterceptorsMap.get(nextMethod);
List<EjbInterceptor> interceptorChain =
new LinkedList<EjbInterceptor>();
for(String nextClass : interceptorClassChain) {
EjbInterceptor interceptor =
ejbBundle.getInterceptorByClassName(nextClass);
results.allInterceptorClasses.add(interceptor);
interceptorChain.add(interceptor);