Package org.apache.tuscany.core.extension.config.extensibility

Examples of org.apache.tuscany.core.extension.config.extensibility.ComponentNameExtensibilityElement


                } else if (element instanceof DestroyInvokerExtensibilityElement) {
                    DestroyInvokerExtensibilityElement invokerElement = (DestroyInvokerExtensibilityElement) element;
                    EventInvoker<Object> destroyInvoker = invokerElement.getEventInvoker();
                    contextFactory.setDestroyInvoker(destroyInvoker);
                } else if (element instanceof ComponentNameExtensibilityElement) {
                    ComponentNameExtensibilityElement nameElement = (ComponentNameExtensibilityElement) element;
                    injectors.add(nameElement.getEventInvoker(name));
                } else if (element instanceof ContextExtensibilityElement) {
                    ContextExtensibilityElement contextElement = (ContextExtensibilityElement) element;
                    injectors.add(contextElement.getInjector(contextFactory));
                } else if (element instanceof InjectorExtensibilityElement) {
                    InjectorExtensibilityElement injectorElement = (InjectorExtensibilityElement) element;
View Full Code Here


    public void visitMethod(Method method, ComponentType type) throws ConfigurationLoadException {
        ComponentName name = method.getAnnotation(ComponentName.class);
        if (name == null) {
            return;
        }
        type.getExtensibilityElements().add(new ComponentNameExtensibilityElement(method));
    }
View Full Code Here

    public void visitField(Field field, ComponentType type) throws ConfigurationLoadException {
        ComponentName name = field.getAnnotation(ComponentName.class);
        if (name == null) {
            return;
        }
        type.getExtensibilityElements().add(new ComponentNameExtensibilityElement(field));
    }
View Full Code Here

                } else if (element instanceof DestroyInvokerExtensibilityElement) {
                    DestroyInvokerExtensibilityElement invokerElement = (DestroyInvokerExtensibilityElement) element;
                    EventInvoker<Object> destroyInvoker = invokerElement.getEventInvoker();
                    contextFactory.setDestroyInvoker(destroyInvoker);
                } else if (element instanceof ComponentNameExtensibilityElement) {
                    ComponentNameExtensibilityElement nameElement = (ComponentNameExtensibilityElement) element;
                    injectors.add(nameElement.getEventInvoker(name));
                } else if (element instanceof ContextExtensibilityElement) {
                    ContextExtensibilityElement contextElement = (ContextExtensibilityElement) element;
                    injectors.add(contextElement.getInjector(contextFactory));
                }else if (element instanceof InjectorExtensibilityElement){
                    InjectorExtensibilityElement injectorElement = (InjectorExtensibilityElement)element;
View Full Code Here

TOP

Related Classes of org.apache.tuscany.core.extension.config.extensibility.ComponentNameExtensibilityElement

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.