return set.topologicalOrder();
}
public void register(Class<? extends Interceptor>... interceptors) {
for (Class<? extends Interceptor> interceptor : interceptors) {
Intercepts intercepts = interceptor.getAnnotation(Intercepts.class);
if (intercepts != null) {
addEdges(interceptor, intercepts.before(), intercepts.after());
} else {
addDefaultEdges(interceptor);
}
}
}