Makes this instance in effect a reference to another FilterChain
instance.
You must not set another attribute or nest elements inside
this element if you make it a reference.
param
r the reference to which this instance is associated
exception
BuildException if this instance already has been configured.
if (!filterReaders.isEmpty()) {
throw tooManyAttributes();
}
// change this to get the objects from the other reference
Object o = r.getReferencedObject(getProject());
if (o instanceof FilterChain) {
FilterChain fc = (FilterChain) o;
filterReaders = fc.getFilterReaders();
} else {
String msg = r.getRefId() + " doesn\'t refer to a FilterChain";
throw new BuildException(msg);
}
super.setRefid(r);