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

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


                    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;
                    injectors.add(injectorElement.getInjector(contextFactory));
                } else if (element instanceof SystemInjectorExtensibilityElement) {
                    SystemInjectorExtensibilityElement injectorElement = (SystemInjectorExtensibilityElement) element;
View Full Code Here


                    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;
                    injectors.add(injectorElement.getInjector(contextFactory));
                }
            }
View Full Code Here

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

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

TOP

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

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.