Package org.apache.tapestry5.ioc

Examples of org.apache.tapestry5.ioc.ServiceResources


    @Test
    public void decorator_method_throws_exception() throws Exception
    {
        ServiceDecoratorFixture fixture = new ServiceDecoratorFixture();
        ModuleBuilderSource source = newSource(fixture);
        ServiceResources resources = mockServiceResources(tracker);
        Logger logger = mockLogger();
        Object delegate = mockFieService();
        fixture.exception = new RuntimeException("Ouch!");

        trainForConstructor(resources, logger);
View Full Code Here


    @Test
    public void unordered_contribution()
    {
        toContribute = new Object();
        Configuration configuration = mockConfiguration();
        ServiceResources serviceResources = mockServiceResources(tracker);
        Logger logger = mockLogger();

        train_getLogger(serviceResources, logger);
        train_getServiceId(serviceResources, "Bif");
View Full Code Here

    @SuppressWarnings("unchecked")
    @Test
    public void unordered_collection_with_service_lookup()
    {
        Configuration configuration = mockConfiguration();
        ServiceResources resources = mockServiceResources(tracker);
        UpcaseService service = mockUpcaseService();
        Logger logger = mockLogger();

        train_getLogger(resources, logger);
        train_getService(resources, "zip.Zap", UpcaseService.class, service);
View Full Code Here

    @SuppressWarnings("unchecked")
    @Test
    public void unordered_collection_with_named_service_lookup()
    {
        Configuration configuration = mockConfiguration();
        ServiceResources resources = mockServiceResources(tracker);
        UpcaseService service = mockUpcaseService();
        Logger logger = mockLogger();

        train_getLogger(resources, logger);
        train_getService(resources, "zip.Zap", UpcaseService.class, service);
View Full Code Here

    @Test
    public void unordered_collection_with_incorrect_configuration_parameter()
    {
        Configuration configuration = mockConfiguration();
        ServiceResources resources = mockServiceResources(tracker);
        Logger logger = mockLogger();

        train_getLogger(resources, logger);
        train_getServiceId(resources, "Bif");
View Full Code Here

    @SuppressWarnings("unchecked")
    @Test
    public void ordered_collection_with_service_lookup()
    {
        OrderedConfiguration configuration = mockOrderedConfiguration();
        ServiceResources resources = mockServiceResources(tracker);
        UpcaseService service = mockUpcaseService();
        Logger logger = mockLogger();

        train_getLogger(resources, logger);
View Full Code Here

    @SuppressWarnings("unchecked")
    @Test
    public void ordered_collection_with_named_service_lookup()
    {
        OrderedConfiguration configuration = mockOrderedConfiguration();
        ServiceResources resources = mockServiceResources(tracker);
        UpcaseService service = mockUpcaseService();
        Logger logger = mockLogger();

        train_getLogger(resources, logger);
View Full Code Here

    @SuppressWarnings("unchecked")
    @Test
    public void mapped_collection_with_service_lookup()
    {
        MappedConfiguration configuration = mockMappedConfiguration();
        ServiceResources resources = mockServiceResources(tracker);
        UpcaseService service = mockUpcaseService();
        Logger logger = mockLogger();

        train_getLogger(resources, logger);
View Full Code Here

    @SuppressWarnings("unchecked")
    @Test
    public void mapped_collection_with_named_service_lookup()
    {
        MappedConfiguration configuration = mockMappedConfiguration();
        ServiceResources resources = mockServiceResources(tracker);
        UpcaseService service = mockUpcaseService();
        Logger logger = mockLogger();

        train_getLogger(resources, logger);
View Full Code Here

        Logger logger = getServiceLogger(serviceId);

        boolean debug = logger.isDebugEnabled();

        final ServiceResources resources = new ServiceResourcesImpl(this, module, serviceDef, classFactory, logger);

        for (final ContributionDef def : contributions)
        {
            final MappedConfiguration<K, V> validating = new ValidatingMappedConfigurationWrapper<K, V>(valueType,
                    resources, map, overrides, serviceId, def, keyClass, keyToContribution);
View Full Code Here

TOP

Related Classes of org.apache.tapestry5.ioc.ServiceResources

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.