// }
//LTODO delegate to BcelWeaver?
- public void setCustomMungerFactory(CustomMungerFactory factory) {
- customMungerFactory = factory;
+ public void setCustomMungerFactory(Class factoryClass) {
+ try {
+ customMungerFactory = (CustomMungerFactory)factoryClass.newInstance();
+ } catch (Exception e) {
+ customMungerFactory = null;
+ }
}
- public CustomMungerFactory getCustomMungerFactory() {
- return customMungerFactory;
+ public boolean hasCustomMungerFactory() {
+ return customMungerFactory!=null;
}
/** init only on initial batch compile? no file-specific options */