Package org.apache.tapestry.ioc.internal.services

Examples of org.apache.tapestry.ioc.internal.services.ClassFactoryImpl


{
    @Test
    public void proxy_class()
    {
        PageRenderSupport delegate = newMock(PageRenderSupport.class);
        ClassFactory factory = new ClassFactoryImpl();
        Environment env = newEnvironment();

        train_peekRequired(env, PageRenderSupport.class, delegate);

        expect(delegate.allocateClientId("fred")).andReturn("barney");
View Full Code Here


        addBuiltin(LOG_SOURCE_SERVICE_ID, LogSource.class, _logSource);

        Log log = _logSource.getLog(RegistryImpl.CLASS_FACTORY_SERVICE_ID);

        _classFactory = new ClassFactoryImpl(contextClassLoader, log);

        addBuiltin(RegistryImpl.CLASS_FACTORY_SERVICE_ID, ClassFactory.class, _classFactory);

        log = _logSource.getLog(THREAD_CLEANUP_HUB_SERVICE_ID);
View Full Code Here

        catch (Exception ex)
        {
            throw new RuntimeException(ex);
        }

        _classFactory = new ClassFactoryImpl(_loader, _classPool, _logger);
    }
View Full Code Here

        catch (Exception ex)
        {
            throw new RuntimeException(ex);
        }

        _classFactory = new ClassFactoryImpl(_loader, _classPool, _log);
    }
View Full Code Here

        catch (Exception ex)
        {
            throw new RuntimeException(ex);
        }

        _classFactory = new ClassFactoryImpl(_loader, classPool, _logger);
    }
View Full Code Here

        // module exists.

        Logger classFactoryLogger = loggerSource.getLogger(TapestryIOCModule.class.getName()
                + ".ClassFactory");

        _classFactory = new ClassFactoryImpl(_classLoader, classFactoryLogger);

        add(TapestryIOCModule.class);
    }
View Full Code Here

    @Test
    public void handle_beans_from_unexpected_classloader() throws Exception
    {
        // First, create something that looks like a Hibernate proxy.

        ClassFactory factory = new ClassFactoryImpl();

        Class clazz = SimpleBean.class;

        ClassFab cf = factory.newClass(clazz.getName() + "$$Proxy", clazz);

        cf.addInterface(Serializable.class);

        Class proxyClass = cf.createClass();
View Full Code Here

        catch (Exception ex)
        {
            throw new RuntimeException(ex);
        }

        _classFactory = new ClassFactoryImpl(_classPool.getLoader(), _classPool, _log);
    }
View Full Code Here

        catch (Exception ex)
        {
            throw new RuntimeException(ex);
        }

        _classFactory = new ClassFactoryImpl(_loader, classPool, _logger);
    }
View Full Code Here

    @Test
    public void get_service_by_id_exists()
    {
        InternalRegistry registry = newInternalRegistry();
        Log log = newLog();
        ClassFactory factory = new ClassFactoryImpl();

        ModuleDef moduleDef = new DefaultModuleDefImpl(ModuleImplTestModule.class, log);

        Module module = new ModuleImpl(registry, moduleDef, log);
View Full Code Here

TOP

Related Classes of org.apache.tapestry.ioc.internal.services.ClassFactoryImpl

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.