Examples of DefaultErrorHandler


Examples of org.apache.hivemind.impl.DefaultErrorHandler

    {
        TaskExecutor executor = new TaskExecutor();
        executor.setTasks(configuration("tasks", List.class));
        // Some of the logic which is automatically provided by the builder factory
        // must be done manually
        ErrorLog errorLog = new ErrorLogImpl(new DefaultErrorHandler(), LogFactory.getLog(TaskExecutor.class));
        executor.setErrorLog(errorLog);
        executor.setMessages(new MessageFormatter(PanoramaStartupModule.class, "panorama"));
        executor.setLog(LogFactory.getLog(TaskExecutor.class));
       
        return executor;
View Full Code Here

Examples of org.apache.hivemind.impl.DefaultErrorHandler

    private ModuleDefinition _md;

    public RegistrySerializer()
    {
        _handler = new DefaultErrorHandler();
    }
View Full Code Here

Examples of org.apache.hivemind.impl.DefaultErrorHandler

    }

    public void testPrivateSchema() throws Exception
    {
        Resource location = getResource("PrivateSchema.xml");
        DefaultErrorHandler eh = new DefaultErrorHandler();

        XmlResourceProcessor p = new XmlResourceProcessor(_resolver, eh);

        ModuleDescriptor md = p.processResource(location);
View Full Code Here

Examples of org.apache.hivemind.impl.DefaultErrorHandler

        RegistryDefinition definition = new RegistryDefinitionImpl();

        for (int i = 0; i < moduleClasses.length; i++)
        {
            AnnotatedModuleReader reader = new AnnotatedModuleReader(definition, getClassResolver(),
                    new DefaultErrorHandler());
            reader.readModule(moduleClasses[i]);
        }

        return definition;
    }
View Full Code Here

Examples of org.apache.hivemind.impl.DefaultErrorHandler

*/
public class TestModuleDescriptor extends HiveMindTestCase
{
    public void testAddDupeSchema() throws Exception
    {
        ModuleDescriptor md = new ModuleDescriptor(getClassResolver(), new DefaultErrorHandler());
        md.setModuleId("foo");

        Resource r = new ClasspathResource(getClassResolver(), "/foo/bar");
        Location l1 = new LocationImpl(r, 20);
        Location l2 = new LocationImpl(r, 97);
View Full Code Here

Examples of org.apache.hivemind.impl.DefaultErrorHandler

        new ConfigurationPointDescriptor().toString();
        new ContributionDescriptor().toString();
        new ImplementationDescriptor().toString();
        new CreateInstanceDescriptor().toString();
        new InvokeFactoryDescriptor().toString();
        new ModuleDescriptor(_resolver, new DefaultErrorHandler()).toString();
        new SubModuleDescriptor().toString();
        new DependencyDescriptor().toString();
        new ServicePointDescriptor().toString();
        new InterceptorDescriptor().toString();
        new ElementImpl().toString();
View Full Code Here

Examples of org.apache.hivemind.impl.DefaultErrorHandler

    /**
     * Constructor that uses default implementations of ClassResolver, ErrorHandler and Locale.
     */
    public AnnotatedRegistryBuilder()
    {
        this(new DefaultClassResolver(), new DefaultErrorHandler(), Locale.getDefault());
    }
View Full Code Here

Examples of org.apache.hivemind.impl.DefaultErrorHandler

    /**
     * @param registryDefinition  the registry definition to which the modules are added.
     */
    public AnnotatedModuleReader(RegistryDefinition registryDefinition)
    {
        this(registryDefinition, new DefaultClassResolver(), new DefaultErrorHandler());
    }
View Full Code Here

Examples of org.apache.hivemind.impl.DefaultErrorHandler

        registry.getService(StringHolder.class, null);
        registryControl.setReturnValue(new StringHolderImpl());

        replayControls();
       
        Autowiring autowiring = new AutowiringImpl(registry, strategyContributions, new DefaultErrorHandler());
        autowiring.autowireProperties(target, new String[] {"stringHolder"});

        verifyControls();

        assertNotNull(target.getStringHolder());
View Full Code Here

Examples of org.apache.hivemind.impl.DefaultErrorHandler

        strategy1.autowireProperty(registry, target, "stringHolder");
        strategy1Control.setReturnValue(false);
       
        replayControls();
       
        Autowiring autowiring = new AutowiringImpl(registry, strategyContributions, new DefaultErrorHandler());
        autowiring.autowireProperties("strategy1", target);

        verifyControls();

    }
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.