@Override
protected Object invoke0(String name, Object[] params, String[] signature) throws Exception {
if (name.equals("addFilterFirst")) {
String filterName = (String) params[0];
ObjectName filterRef = (ObjectName) params[1];
IoFilter filter = getFilter(filterRef);
getSource().getFilterChain().addFirst(filterName, filter);
return null;
}
if (name.equals("addFilterLast")) {
String filterName = (String) params[0];
ObjectName filterRef = (ObjectName) params[1];
IoFilter filter = getFilter(filterRef);
getSource().getFilterChain().addLast(filterName, filter);
return null;
}
if (name.equals("addFilterBefore")) {
String filterBaseName = (String) params[0];
String filterName = (String) params[1];
ObjectName filterRef = (ObjectName) params[2];
IoFilter filter = getFilter(filterRef);
getSource().getFilterChain().addBefore(filterBaseName, filterName, filter);
return null;
}
if (name.equals("addFilterAfter")) {
String filterBaseName = (String) params[0];
String filterName = (String) params[1];
ObjectName filterRef = (ObjectName) params[2];
IoFilter filter = getFilter(filterRef);
getSource().getFilterChain().addAfter(filterBaseName, filterName, filter);
return null;
}
if (name.equals("removeFilter")) {