Examples of Resetter


Examples of com.thoughtworks.proxy.kit.Resetter

        assertFalse(getFactory().canProxy(Void.class));
        assertFalse(getFactory().canProxy(void.class));
    }

    private void useSerializedFactory(ProxyFactory factory) {
        Resetter resetter = (Resetter)Null.object(Resetter.class);
        assertFalse(resetter.reset(this));
    }
View Full Code Here

Examples of com.thoughtworks.proxy.kit.Resetter

* @author Jörg Schaible
*/
public class PoolToyExample {

    public static void packageOverviewExample1() {
        Pool pool = new Pool(Checksum.class, new Resetter() {
            public boolean reset(final Object object) {
                ((Checksum)object).reset();
                return true;
            }
        });
View Full Code Here

Examples of com.thoughtworks.proxy.kit.Resetter

                        .hasLifecycle(delegate.getComponentImplementation());
        components = new ArrayList<Object>();

        final Class type = delegate.getComponentKey() instanceof Class ? (Class)delegate
                .getComponentKey() : delegate.getComponentImplementation();
        final Resetter resetter = context.getResetter();
        this.pool = new Pool(type, delegateHasLifecylce ? new LifecycleResetter(
                this, resetter) : resetter, context.getProxyFactory(), serializationMode);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.