Package org.apache.tuscany.model.assembly

Examples of org.apache.tuscany.model.assembly.AssemblyObject


                    if (PROPERTIES.equals(name)) {
                        loadProperties(reader, loaderContext.getResourceLoader(), component);
                    } else if (REFERENCES.equals(name)) {
                        loadReferences(reader, component);
                    } else {
                        AssemblyObject o = registry.load(reader, loaderContext);
                        if (o instanceof Implementation) {
                            Implementation impl = (Implementation) o;
                            impl.initialize(registry.getContext());
                            component.setImplementation(impl);
                        }
View Full Code Here


        externalService.setOverrideOption(StAXUtil.overrideOption(reader.getAttributeValue(null, "overridable"), OverrideOption.NO));

        while (true) {
            switch (reader.next()) {
            case START_ELEMENT:
                AssemblyObject o = registry.load(reader, loaderContext);
                if (o instanceof ServiceContract) {
                    Service service = factory.createService();
                    service.setName(name);
                    service.setServiceContract((ServiceContract) o);
                    ConfiguredService configuredService = factory.createConfiguredService();
View Full Code Here

        reference.setMultiplicity(StAXUtil.multiplicity(reader.getAttributeValue(null, "multiplicity"), Multiplicity.ONE_ONE));

        while (true) {
            switch (reader.next()) {
            case START_ELEMENT:
                AssemblyObject o = registry.load(reader, loaderContext);
                if (o instanceof ServiceContract) {
                    reference.setServiceContract((ServiceContract) o);
                }
                reader.next();
                break;
View Full Code Here

        ComponentType componentType = factory.createComponentType();

        while (true) {
            switch (reader.next()) {
            case START_ELEMENT:
                AssemblyObject o = registry.load(reader, loaderContext);
                if (o instanceof Service) {
                    componentType.getServices().add((Service) o);
                } else if (o instanceof Reference) {
                    componentType.getReferences().add((Reference) o);
                } else if (o instanceof Property) {
View Full Code Here

    public void loadComposite(XMLStreamReader reader, Composite composite, LoaderContext loaderContext) throws XMLStreamException, ConfigurationLoadException {
        composite.setName(reader.getAttributeValue(null, "name"));
        while (true) {
            switch (reader.next()) {
            case START_ELEMENT:
                AssemblyObject o = registry.load(reader, loaderContext);
                if (o instanceof EntryPoint) {
                    composite.getEntryPoints().add((EntryPoint) o);
                } else if (o instanceof ExternalService) {
                    composite.getExternalServices().add((ExternalService) o);
                } else if (o instanceof Component) {
View Full Code Here

                QName qname = reader.getName();
                if (AssemblyConstants.REFERENCE.equals(qname)) {
                    String uri = reader.getElementText();
                    configuredReference.getTargets().add(uri);
                } else {
                    AssemblyObject o = registry.load(reader, loaderContext);
                    if (o instanceof Binding) {
                        entryPoint.getBindings().add((Binding) o);
                    } else if (o instanceof ServiceContract) {
                        service.setServiceContract((ServiceContract) o);
                        reference.setServiceContract((ServiceContract) o);
View Full Code Here

        service.setName(reader.getAttributeValue(null, "name"));

        while (true) {
            switch (reader.next()) {
            case START_ELEMENT:
                AssemblyObject o = registry.load(reader, loaderContext);
                if (o instanceof ServiceContract) {
                    service.setServiceContract((ServiceContract) o);
                }
                reader.next();
                break;
View Full Code Here

TOP

Related Classes of org.apache.tuscany.model.assembly.AssemblyObject

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.