Package com.thoughtworks.proxy.factory

Examples of com.thoughtworks.proxy.factory.StandardProxyFactory


        pico.registerComponentImplementation(DefaultPicoContainerLifecycleTestCase.Four.class);
        pico.registerComponentImplementation(DefaultPicoContainerLifecycleTestCase.Two.class);
        pico.registerComponentImplementation(DefaultPicoContainerLifecycleTestCase.One.class);
        pico.registerComponentImplementation(DefaultPicoContainerLifecycleTestCase.Three.class);

        ProxyFactory proxyFactory = new StandardProxyFactory();
        Startable startable = (Startable) Multicaster.object(pico, true, proxyFactory);
        Startable stoppable = (Startable) Multicaster.object(pico, false, proxyFactory);
        Disposable disposable = (Disposable) Multicaster.object(pico, false, proxyFactory);

        startable.start();
View Full Code Here


     *
     * @param delegate The delegated {@link ComponentAdapterFactory}.
     * @param type The assimilated type.
     */
    public AssimilatingComponentAdapterFactory(final ComponentAdapterFactory delegate, final Class type) {
        this(delegate, type, new StandardProxyFactory());
    }
View Full Code Here

     *
     * @param type The class type used as key.
     * @param delegate The delegated {@link ComponentAdapter}.
     */
    public AssimilatingComponentAdapter(final Class type, final ComponentAdapter delegate) {
        this(type, delegate, new StandardProxyFactory());
    }
View Full Code Here

     * @param delegate The {@link ComponentAdapter}to delegate.
     * @throws PicoIntrospectionException Thrown if the component does not implement any
     *                     interface.
     */
    public ThreadLocalComponentAdapter(final ComponentAdapter delegate) throws PicoIntrospectionException {
        this(new CachingComponentAdapter(delegate, new ThreadLocalReference()), new StandardProxyFactory());
    }
View Full Code Here

    public HotSwappingComponentAdapterFactory() {
        this(new DefaultComponentAdapterFactory());
    }

    public HotSwappingComponentAdapterFactory(ComponentAdapterFactory delegate) {
        this(delegate, new StandardProxyFactory());
    }
View Full Code Here

        super(delegate);
        this.proxyFactory = proxyFactory;
    }

    public HotSwappingComponentAdapter(ComponentAdapter delegate) {
        this(delegate, new StandardProxyFactory());
    }
View Full Code Here

     * ThreadLocal. The Proxy instances are generated by the JDK.
     *
     * @param delegate The delegated {@link ComponentAdapterFactory}.
     */
    public ThreadLocalComponentAdapterFactory(final ComponentAdapterFactory delegate) {
        this(delegate, new StandardProxyFactory());
    }
View Full Code Here

     *
     * @param delegate The delegated ComponentAdapterFactory.
     * @param ensure {@link #ENSURE_THREAD_LOCALITY}or {@link #THREAD_ENSURES_LOCALITY}.
     */
    public ThreadLocalComponentAdapterFactory(final ComponentAdapterFactory delegate, final boolean ensure) {
        this(delegate, ensure, new StandardProxyFactory());
    }
View Full Code Here

     * @param decorator the decorator instance.
     * @return a decorating proxy.
     * @since 0.1
     */
    public static Object object(final Class[] types, final Object delegate, final InvocationDecorator decorator) {
        return object(types, delegate, decorator, new StandardProxyFactory());
    }
View Full Code Here

     * @param type the type of the instances
     * @param resetter the resetter of the pooled elements
     * @since 0.2
     */
    public Pool(final Class type, final Resetter resetter) {
        this(type, resetter, new StandardProxyFactory());
    }
View Full Code Here

TOP

Related Classes of com.thoughtworks.proxy.factory.StandardProxyFactory

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.