}
public Initializer(String[] inclusionRules, String[] exclusionRules,
String resolution, MethodInterceptor mi) throws JiapiException {
this.ctx = new InstrumentationContext();
InstrumentationDescriptor id = new InstrumentationDescriptor();
ctx.addInstrumentationDescriptor(id);
if (inclusionRules != null) {
for (int i = 0; i < inclusionRules.length; i++) {
if (inclusionRules[i] != null) {
id.addInclusionRule(inclusionRules[i]);
}
else {
log.warn("Skipping null inclusion rule");
}
}
}
if (exclusionRules != null) {
for (int i = 0; i < exclusionRules.length; i++) {
if (exclusionRules[i] != null) {
id.addExclusionRule(exclusionRules[i]);
}
else {
log.warn("Skipping null exclusion rule");
}
}