Examples of ClassFactoryImpl


Examples of org.apache.hivemind.service.impl.ClassFactoryImpl

        verifyControls();
    }

    public void testFilterChain()
    {
        ClassFactory cf = new ClassFactoryImpl();
        DefaultImplementationBuilderImpl dib = new DefaultImplementationBuilderImpl();

        dib.setClassFactory(cf);

        MockControl moduleControl = newControl(Module.class);
        Module module = (Module) moduleControl.getMock();

        module.getModuleId();
        moduleControl.setReturnValue("foo.bar");

        module.getClassResolver();
        moduleControl.setReturnValue(new DefaultClassResolver());

        PipelineAssembler pa =
            new PipelineAssembler(
                getLog(),
                getErrorHandler(),
                "foo.bar",
                StandardService.class,
                StandardFilter.class,
                new ClassFactoryImpl(),
                dib,
                module);

        replayControls();
View Full Code Here

Examples of org.apache.hivemind.service.impl.ClassFactoryImpl

        verifyControls();
    }

    public void testPipelineFactoryWithTerminator()
    {
        ClassFactory cf = new ClassFactoryImpl();
        DefaultImplementationBuilderImpl dib = new DefaultImplementationBuilderImpl();

        dib.setClassFactory(cf);

        MockControl moduleControl = newControl(Module.class);
View Full Code Here

Examples of org.apache.hivemind.service.impl.ClassFactoryImpl

        verifyControls();
    }

    public void testPipelineFactoryNoTerminator()
    {
        ClassFactory cf = new ClassFactoryImpl();
        DefaultImplementationBuilderImpl dib = new DefaultImplementationBuilderImpl();

        dib.setClassFactory(cf);

        MockControl moduleControl = newControl(Module.class);
View Full Code Here

Examples of org.apache.hivemind.service.impl.ClassFactoryImpl

     * much as the full framework would do at runtime.
     */

    private IPage newPage(IComponentSpecification specification, ComponentMessagesSource source, Locale locale)
    {
        ClassFactory classFactory = new ClassFactoryImpl();

        EnhancementOperationImpl op = new EnhancementOperationImpl(new DefaultClassResolver(),
                specification, BasePage.class, classFactory);

        InjectMessagesWorker injectMessages = new InjectMessagesWorker();
View Full Code Here

Examples of org.apache.hivemind.service.impl.ClassFactoryImpl

        specControl.setReturnValue(l);

        replayControls();

        EnhancementOperationImpl eo = new EnhancementOperationImpl(new DefaultClassResolver(),
                spec, GetClassReferenceFixture.class, new ClassFactoryImpl());

        // This does two things; it creates a new field, and it sets up a new constructor
        // parameter to inject the class value (Map.class) into each new instance.

        String ref = eo.getClassReference(Map.class);
View Full Code Here

Examples of org.apache.tapestry.enhance.ClassFactoryImpl

    private ExpressionEvaluatorImpl create()
    {
        ExpressionCacheImpl cache = new ExpressionCacheImpl();

        ExpressionEvaluatorImpl result = new ExpressionEvaluatorImpl();
        result.setClassFactory(new ClassFactoryImpl());

        result.setExpressionCache(cache);
       
        cache.setEvaluator(result);
View Full Code Here

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

    private ClassFactory _classFactory;

    @BeforeClass
    public void setup()
    {
        _classFactory = new ClassFactoryImpl();
    }
View Full Code Here

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

        // Make the ClassFactory appear to be a service inside TapestryIOCModule, even before that
        // module exists.

        Log classFactoryLog = logSource.getLog(TapestryIOCModule.class.getName() + ".ClassFactory");

        _classFactory = new ClassFactoryImpl(_classLoader, classFactoryLog);

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

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

    @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

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

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

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

        Module module = new ModuleImpl(registry, moduleDef, null, log);
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.