// Path: api/src/main/java/org/jboss/osgi/resolver/XEnvironment.java
// public interface XEnvironment {
// 
//     void installResources(XResource... resources);
// 
//     void uninstallResources(XResource... resources);
// 
//     XResource getResourceById(long identifier);
// 
//     Iterator<XResource> getResources(Collection<String> types);
// 
//     Long nextResourceIdentifier(Long value, String symbolicName);
// 
//     List<Capability> findProviders(Requirement req);
// 
//     Map<Resource, Wiring> updateWiring(Map<Resource, List<Wire>> delta);
// 
//     Map<Resource, Wiring> getWirings();
// }
// 
// Path: api/src/main/java/org/jboss/osgi/resolver/XResolveContext.java
// public abstract class XResolveContext extends ResolveContext {
// 
//     public abstract XEnvironment getEnvironment();
// }


import org.osgi.resource.Capability;
import org.osgi.resource.Requirement;
import org.osgi.resource.Resource;
import org.osgi.resource.Wiring;
import org.osgi.service.resolver.HostedCapability;
import static org.jboss.osgi.resolver.ResolverLogger.LOGGER;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import org.jboss.osgi.resolver.XEnvironment;
import org.jboss.osgi.resolver.XResolveContext;
import org.osgi.framework.Constants;
/*
 * #%L
 * JBossOSGi Resolver API
 * %%
 * Copyright (C) 2010 - 2012 JBoss by Red Hat
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */

package org.jboss.osgi.resolver.spi;




/**
 * The abstract implementation of a {@link XResolveContext}.
 *
 * @author thomas.diesler@jboss.com
 * @since 02-Apr-2012
 */
public class AbstractResolveContext extends XResolveContext {

    private final XEnvironment environment;

// Path: api/src/main/java/org/jboss/osgi/resolver/XEnvironment.java
// public interface XEnvironment {
// 
//     void installResources(XResource... resources);
// 
//     void uninstallResources(XResource... resources);
// 
//     XResource getResourceById(long identifier);
// 
//     Iterator<XResource> getResources(Collection<String> types);
// 
//     Long nextResourceIdentifier(Long value, String symbolicName);
// 
//     List<Capability> findProviders(Requirement req);
// 
//     Map<Resource, Wiring> updateWiring(Map<Resource, List<Wire>> delta);
// 
//     Map<Resource, Wiring> getWirings();
// }
// 
// Path: api/src/main/java/org/jboss/osgi/resolver/XResolveContext.java
// public abstract class XResolveContext extends ResolveContext {
// 
//     public abstract XEnvironment getEnvironment();
// }


// Path: api/src/main/java/org/jboss/osgi/resolver/spi/AbstractResolveContext.java
import org.osgi.resource.Capability;
import org.osgi.resource.Requirement;
import org.osgi.resource.Resource;
import org.osgi.resource.Wiring;
import org.osgi.service.resolver.HostedCapability;
import static org.jboss.osgi.resolver.ResolverLogger.LOGGER;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import org.jboss.osgi.resolver.XEnvironment;
import org.jboss.osgi.resolver.XResolveContext;
import org.osgi.framework.Constants;

/*
 * #%L
 * JBossOSGi Resolver API
 * %%
 * Copyright (C) 2010 - 2012 JBoss by Red Hat
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */

package org.jboss.osgi.resolver.spi;




/**
 * The abstract implementation of a {@link XResolveContext}.
 *
 * @author thomas.diesler@jboss.com
 * @since 02-Apr-2012
 */
public class AbstractResolveContext extends XResolveContext {

    private final XEnvironment environment;

    public AbstractResolveContext(XEnvironment environment) {