Examples of createProxy()


Examples of org.apache.geronimo.kernel.proxy.ProxyManager.createProxy()

        gbean.setAttribute("finalInt", new Integer(123));
        kernel.loadGBean(gbean, myCl);
        kernel.startGBean(gbean.getAbstractName());
        ProxyManager mgr = kernel.getProxyManager();

        Object test = mgr.createProxy(gbean.getAbstractName(), myCl);
        assertTrue(test instanceof MockEndpoint);
        assertTrue(test instanceof MockParentInterface1);
        assertTrue(test instanceof MockParentInterface2);
        assertTrue(test instanceof MockChildInterface1);
        assertTrue(test instanceof MockChildInterface2);
View Full Code Here

Examples of org.apache.geronimo.kernel.proxy.ProxyManager.createProxy()

        assertEquals("Foo", ((MockParentInterface2)test).getValue());
        ((MockChildInterface1)test).getFinalInt();
        ((MockChildInterface2)test).doNothing();
        assertEquals("Foo", ((MockChildInterface2)test).doSomething("Foo"));

        test = mgr.createProxy(gbean.getAbstractName(), MockEndpoint.class);
        assertTrue(test instanceof MockEndpoint);
        assertTrue(test instanceof MockParentInterface1);
        assertTrue(test instanceof MockParentInterface2);
        assertTrue(test instanceof MockChildInterface1);
        assertTrue(test instanceof MockChildInterface2);
View Full Code Here

Examples of org.apache.geronimo.kernel.proxy.ProxyManager.createProxy()

        gbean.setAttribute("name", "Test");
        kernel.loadGBean(gbean, myCl);
        kernel.startGBean(gbean.getAbstractName());
        ProxyManager mgr = kernel.getProxyManager();

        Object test = mgr.createProxy(gbean.getAbstractName(), Named.class);
        assertTrue(test instanceof Named);
        assertFalse(test instanceof ClassGBean);
        assertEquals("Test", ((Named)test).getName());

        test = mgr.createProxy(gbean.getAbstractName(), myCl);
View Full Code Here

Examples of org.apache.geronimo.kernel.proxy.ProxyManager.createProxy()

        Object test = mgr.createProxy(gbean.getAbstractName(), Named.class);
        assertTrue(test instanceof Named);
        assertFalse(test instanceof ClassGBean);
        assertEquals("Test", ((Named)test).getName());

        test = mgr.createProxy(gbean.getAbstractName(), myCl);
        assertTrue(test instanceof Named);
        assertFalse(test instanceof ClassGBean);
        assertEquals("Test", ((Named)test).getName());

        try {
View Full Code Here

Examples of org.apache.geronimo.proxy.ProxyContainer.createProxy()

        ClassLoader cl = JaasLoginServiceMBean.class.getClassLoader();

        // Setup the client side container..
        RequestChannelInterceptor remoteInterceptor = new RequestChannelInterceptor(target, cl);
        ProxyContainer clientContainer = new ProxyContainer(remoteInterceptor);
        return (JaasLoginServiceMBean) clientContainer.createProxy(cl , new Class[]{JaasLoginServiceMBean.class});

    }

}
View Full Code Here

Examples of org.apache.openejb.core.entity.EntityEjbHomeHandler.createProxy()

        // get the home proxy handler
        EJBHome homeProxy = deploymentInfo.getEJBHome();
        EntityEjbHomeHandler handler = (EntityEjbHomeHandler) ProxyManager.getInvocationHandler(homeProxy);

        // create the proxy
        EJBObject ejbObject = (EJBObject) handler.createProxy(proxyInfo);
        return ejbObject;
    }

    public Class getHomeInterface() {
        return deploymentInfo.getHomeInterface();
View Full Code Here

Examples of org.apache.tapestry5.ioc.services.ClassFactory.createProxy()

                    ClassFactory.class);

             final PersistenceContext annotation = annotationProvider
                            .getAnnotation(PersistenceContext.class);

            proxy = classFactory.createProxy(EntityManager.class, new ObjectCreator()
            {
                public Object createObject()
                {
                    final EntityManagerManager entityManagerManager = objectLocator
                            .getService(EntityManagerManager.class);
View Full Code Here

Examples of org.apache.tapestry5.ioc.services.PlasticProxyFactory.createProxy()

            this.threadLocale = objectLocator.getService(ThreadLocale.class);

            PlasticProxyFactory proxyFactory = objectLocator.getService("PlasticProxyFactory",
                    PlasticProxyFactory.class);

            proxy = proxyFactory.createProxy(Messages.class, new ApplicationMessagesObjectCreator(),
                    "<ApplicationMessagesProxy>");

            // Listen for invalidations; clear our cache of localized Messages bundles when
            // and invalidation occurs.
View Full Code Here

Examples of org.apache.tuscany.core.wire.WireFactory.createProxy()

            e.setIdentifier(qName.getPortName());
            e.addContextName(getName());
            throw e;
        }
        try {
            Object proxy = targetFactory.createProxy(); //createProxy(new Class[] { iface });
            if (notify) {
                publish(new InstanceCreated(this));
            }
            return proxy;
        } catch (ProxyCreationException e) {
View Full Code Here

Examples of org.apache.tuscany.sca.core.invocation.ExtensibleProxyFactory.createProxy()

                                        serviceInterface);
        } catch (Exception e) {
            throw new ServiceRuntimeException(e);
        }

        return proxyFactory.createProxy(serviceInterface, epr);
    }

    private RuntimeEndpointReference createEndpointReference(JavaInterfaceFactory javaInterfaceFactory,
                                                             CompositeContext compositeContext,
                                                             AssemblyFactory assemblyFactory,
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.