@Test public void testRenameAnonymousInnerClass() throws Exception { ConfigKey<Object> CONF1 = new BasicConfigKey<Object>(Object.class, "test.conf1"); Predicate<Entity> origPredicate = idEqualTo(origApp.getId()); origApp.config().set(CONF1, origPredicate); CompoundTransformer transformer = CompoundTransformer.builder() .renameClassTag(origPredicate.getClass().getName(), RenamedIdEqualToPredicate.class.getName()) .renameField(RenamedIdEqualToPredicate.class.getName(), "val$paramVal", "val") .build(); newApp = transformAndRebind(transformer); RenamedIdEqualToPredicate newPredicate = (RenamedIdEqualToPredicate) newApp.getConfig(CONF1); assertTrue(newPredicate.apply(newApp)); }
public static Builder builder() { return new Builder(); }
CompoundTransformer { public static Builder builder() { return new Builder(); } }
CompoundTransformer { public static Builder builder() { return new Builder(); } protected  CompoundTransformer(Builder builder); }
CompoundTransformer { public static Builder builder() { return new Builder(); } protected  CompoundTransformer(Builder builder); static Builder builder(); BrooklynMementoRawData transform(BrooklynMementoPersisterToObjectStore reader, RebindExceptionHandler exceptionHandler); BrooklynMementoRawData transform(BrooklynMementoRawData rawData); }
CompoundTransformer { public static Builder builder() { return new Builder(); } protected  CompoundTransformer(Builder builder); static Builder builder(); BrooklynMementoRawData transform(BrooklynMementoPersisterToObjectStore reader, RebindExceptionHandler exceptionHandler); BrooklynMementoRawData transform(BrooklynMementoRawData rawData); static final CompoundTransformer NOOP; }