Package org.jboss.gravia.resource.spi

Examples of org.jboss.gravia.resource.spi.AbstractResource


        }

        // Apply resolver results
        if (apply) {
            for (Entry<Resource, List<Wire>> entry : resourceWires.entrySet()) {
                AbstractResource requirer = (AbstractResource) entry.getKey();
                List<Wire> reqwires = entry.getValue();
                AbstractWiring reqwiring = (AbstractWiring) requirer.getWiring();
                if (reqwiring == null) {
                    reqwiring = createWiring(requirer, reqwires, null);
                    requirer.setWiring(reqwiring);
                } else {
                    for (Wire wire : reqwires) {
                        reqwiring.addRequiredWire(wire);
                    }
                }
                for (Wire wire : reqwires) {
                    AbstractResource provider = (AbstractResource) wire.getProvider();
                    AbstractWiring provwiring = (AbstractWiring) provider.getWiring();
                    if (provwiring == null) {
                        provwiring = createWiring(provider, null, null);
                        provider.setWiring(provwiring);
                    }
                    provwiring.addProvidedWire(wire);
                }
            }
        }
View Full Code Here


        // Apply resolver results
        if (apply) {
            Map<Resource, Wiring> wirings = context.getWirings();
            for (Entry<Resource, List<Wire>> entry : resourceWires.entrySet()) {
                AbstractResource requirer = (AbstractResource) entry.getKey();
                List<Wire> reqwires = entry.getValue();
                AbstractWiring reqwiring = (AbstractWiring) wirings.get(requirer);
                if (reqwiring == null) {
                    reqwiring = createWiring(requirer, reqwires, null);
                    context.putWiring(requirer, reqwiring);
                } else {
                    for (Wire wire : reqwires) {
                        reqwiring.addRequiredWire(wire);
                    }
                }
                for (Wire wire : reqwires) {
                    AbstractResource provider = (AbstractResource) wire.getProvider();
                    AbstractWiring provwiring = (AbstractWiring) wirings.get(provider);
                    if (provwiring == null) {
                        provwiring = createWiring(provider, null, null);
                        context.putWiring(provider, provwiring);
                    }
View Full Code Here

        // Apply resolver results
        if (apply) {
            Map<Resource, Wiring> wirings = context.getWirings();
            for (Entry<Resource, List<Wire>> entry : resourceWires.entrySet()) {
                AbstractResource requirer = (AbstractResource) entry.getKey();
                List<Wire> reqwires = entry.getValue();
                AbstractWiring reqwiring = (AbstractWiring) wirings.get(requirer);
                if (reqwiring == null) {
                    reqwiring = createWiring(requirer, reqwires, null);
                    context.putWiring(requirer, reqwiring);
                } else {
                    for (Wire wire : reqwires) {
                        reqwiring.addRequiredWire(wire);
                    }
                }
                for (Wire wire : reqwires) {
                    AbstractResource provider = (AbstractResource) wire.getProvider();
                    AbstractWiring provwiring = (AbstractWiring) wirings.get(provider);
                    if (provwiring == null) {
                        provwiring = createWiring(provider, null, null);
                        context.putWiring(provider, provwiring);
                    }
View Full Code Here

TOP

Related Classes of org.jboss.gravia.resource.spi.AbstractResource

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.