Package biz.aQute.resolve.internal

Examples of biz.aQute.resolve.internal.BndrunResolveContext$CapabilityComparator


    private Map<Resource,List<Wire>> optional;

    private ResolutionException resolutionException;

    public Map<Resource,List<Wire>> resolveRequired(BndEditModel inputModel, Registry plugins, Resolver resolver, Collection<ResolutionCallback> callbacks, LogService log) throws ResolutionException {
        BndrunResolveContext rc = new BndrunResolveContext(inputModel, plugins, log);
        rc.addCallbacks(callbacks);

        Map<Resource,List<Wire>> wirings = resolver.resolve(rc);
        Map<Resource,List<Wire>> result = invertWirings(wirings);
        removeFrameworkAndInputResources(result, rc);
View Full Code Here


        return result;
    }

    public Map<Resource,List<Wire>> resolveOptional(BndEditModel inputModel, Set<Resource> requiredResources, Registry plugins, Resolver resolver, Collection<ResolutionCallback> callbacks, LogService log) throws ResolutionException {
        BndrunResolveContext rc = new BndrunResolveContext(inputModel, plugins, log);
        rc.addCallbacks(callbacks);
        rc.setOptionalRoots(requiredResources);

        Map<Resource,List<Wire>> wirings = resolver.resolve(rc);
        removeFrameworkAndInputResources(wirings, rc);

        // Remove requiredResources
View Full Code Here

    }

    public boolean XXXresolve(BndEditModel inputModel, Registry pluginRegistry, Resolver resolver, LogService log) {
        try {
            // Resolve required resources
            BndrunResolveContext resolveContext = new BndrunResolveContext(inputModel, pluginRegistry, log);
            Map<Resource,List<Wire>> wirings = resolver.resolve(resolveContext);
            required = invertWirings(wirings);
            removeFrameworkAndInputResources(required, resolveContext);

            // Resolve optional resources
            resolveContext = new BndrunResolveContext(inputModel, pluginRegistry, log);
            resolveContext.setOptionalRoots(wirings.keySet());
            Map<Resource,List<Wire>> optionalWirings = resolver.resolve(resolveContext);
            optional = invertWirings(optionalWirings);
            removeFrameworkAndInputResources(optional, resolveContext);

            // Remove required resources from optional resource map
View Full Code Here

TOP

Related Classes of biz.aQute.resolve.internal.BndrunResolveContext$CapabilityComparator

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.