Package org.gwtoolbox.ioc.core.rebind.config

Examples of org.gwtoolbox.ioc.core.rebind.config.SimpleComponentDefinition


            if (isComponent(type)) {
                if (logger.isLoggable(TreeLogger.Type.TRACE)) {
                    logger.trace("Found component type '" + type.getQualifiedSourceName() + "'");
                }
                SimpleComponentDefinition componentDefinition = loadComponentDefinition(logger, type, context.getTypeOracle());
                oracle.registerComponentDefinition(componentDefinition);

                continue;
            }

            if (scanRemoteServices && isRemoteService(type, context)) {
                if (logger.isLoggable(TreeLogger.Type.TRACE)) {
                    logger.trace("Found remote service type '" + type.getQualifiedSourceName() + "'");
                }
                SimpleComponentDefinition componentDefinition = loadRemoteServiceComponentDefinition(logger, type, context.getTypeOracle());
                oracle.registerComponentDefinition(componentDefinition);
            }
        }
    }
View Full Code Here


        Component component = type.getAnnotation(Component.class);
        String name = component.name();
        if ("".equals(name)) {
            name = StringUtils.uncapitalize(type.getSimpleSourceName());
        }
        SimpleComponentDefinition definition = new SimpleComponentDefinition(name, type, component.scope() == Scope.SINGLETON);
        definition.setLazy(component.lazyInit());
        String initMethodName = component.initMethodName();
        if (!"".equals(initMethodName)) {
            definition.setInitMethodName(initMethodName);
        }
        String disposeMethodName = component.disposeMethodName();
        if (!"".equals(disposeMethodName)) {
            definition.setDisposeMethodName(disposeMethodName);
        }

        componentProcessor.process(logger, definition, typeOracle);

        return definition;
View Full Code Here

                StringUtils.uncapitalize(remoteType.getSimpleSourceName());

        String asyncTypeName = remoteType.getQualifiedSourceName() + "Async";
        JClassType asyncType = typeOracle.findType(asyncTypeName);

        SimpleComponentDefinition definition = new SimpleComponentDefinition(name, remoteType);
        definition.setGeneratedType(asyncType);

        return definition;
    }
View Full Code Here

        }

        if (componentId == null) {
            componentId = DEFAULT_MULTICASTER_ID;
            JClassType type = context.getTypeOracle().findType(DefaultApplicationEventMulticaster.class.getName());
            SimpleComponentDefinition definition = new SimpleComponentDefinition(DEFAULT_MULTICASTER_ID, type, true, false, true);
            oracle.registerComponentDefinition(definition);
        }

        oracle.setMulticasterComponentId(componentId);
    }
View Full Code Here

TOP

Related Classes of org.gwtoolbox.ioc.core.rebind.config.SimpleComponentDefinition

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.