Package org.fakereplace.replacement

Examples of org.fakereplace.replacement.ReplacementResult


            }
            // notify the integration classes that stuff is about to change
            ClassChangeNotifier.instance().beforeChange(Collections.unmodifiableList(changedClasses), Collections.unmodifiableList(addedClass), attachments);
            CurrentChangedClasses.prepareClasses(changedClasses);
            // re-write the classes so their field
            ReplacementResult result = ClassRedefiner.rewriteLoadedClasses(classes);
            for (AddedClass c : addedData) {
                ClassLookupManager.addClassInfo(c.getClassName(), c.getLoader(), c.getData());
            }
            inst.redefineClasses(result.getClasses());
            if (!result.getClassesToRetransform().isEmpty()) {
                inst.retransformClasses(result.getClassesToRetransform().toArray(new Class[result.getClassesToRetransform().size()]));
            }
            Introspector.flushCaches();

            ClassChangeNotifier.instance().afterChange(Collections.unmodifiableList(CurrentChangedClasses.getChanged()), Collections.unmodifiableList(addedClass), attachments);
        } catch (Throwable e) {
View Full Code Here

TOP

Related Classes of org.fakereplace.replacement.ReplacementResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.