Package org.gwtoolbox.ioc.core.client.annotation

Examples of org.gwtoolbox.ioc.core.client.annotation.Component


    }

    protected SimpleComponentDefinition loadComponentDefinition(EasyTreeLogger logger, JClassType type, TypeOracle typeOracle)
        throws UnableToCompleteException {

        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);
View Full Code Here


* @author Uri Boness
*/
public class DefaultJavaConfigNamingStrategy extends AbstractJavaConfigNamingStrategy {

    protected String resolveComponentNameFromAnnotations(JMethod method) {
        Component component = method.getAnnotation(Component.class);
        return component.name();
    }
View Full Code Here

TOP

Related Classes of org.gwtoolbox.ioc.core.client.annotation.Component

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.