Examples of FeaturesService


Examples of org.apache.karaf.features.FeaturesService

    }

    @Test
    public void testShowHiddenFeatures() throws Exception {

        FeaturesService service = EasyMock.createMock(FeaturesService.class);
        Repository repo = EasyMock.createMock(Repository.class);
        Feature feature = EasyMock.createMock(Feature.class);

        EasyMock.expect(service.listRepositories()).andReturn(new Repository[] { repo });
        EasyMock.expect(repo.getFeatures()).andReturn(new Feature[] { feature });
        EasyMock.expect(feature.isHidden()).andReturn(true).anyTimes();
        EasyMock.expect(feature.getName()).andReturn("feature");
        EasyMock.expect(feature.getDescription()).andReturn("description");
        EasyMock.expect(feature.getVersion()).andReturn("1.0.0");
        EasyMock.expect(service.isRequired(feature)).andReturn(true);
        EasyMock.expect(service.isInstalled(feature)).andReturn(true);
        EasyMock.expect(repo.getName()).andReturn("repository").anyTimes();

        EasyMock.replay(service, repo, feature);

        ListFeaturesCommand command = new ListFeaturesCommand();
View Full Code Here

Examples of org.apache.karaf.features.FeaturesService

    private FeatureDeploymentListener listener;

    @Override
    protected void doStart() throws Exception {
        FeaturesService service = getTrackedService(FeaturesService.class);
        if (service == null) {
            return;
        }

        Hashtable<String, Object> props = new Hashtable<String, Object>();
View Full Code Here

Examples of org.apache.karaf.features.FeaturesService

)
@Managed("org.apache.karaf.kar")
public class Activator extends BaseActivator implements ManagedService {

    protected void doStart() throws Exception {
        FeaturesService featuresService = getTrackedService(FeaturesService.class);
        if (featuresService == null) {
            return;
        }

        boolean noAutoRefreshBundles = getBoolean("noAutoRefreshBundles", false);
View Full Code Here

Examples of org.apache.servicemix.gshell.features.FeaturesService

        if (ref == null) {
            io.out.println("FeaturesService service is unavailable.");
            return null;
        }
        try {
            FeaturesService admin = (FeaturesService) getBundleContext().getService(ref);
            if (admin == null) {
                io.out.println("FeaturesService service is unavailable.");
                return null;
            }
View Full Code Here

Examples of org.apache.servicemix.kernel.gshell.features.FeaturesService

        if (ref == null) {
            io.out.println("FeaturesService service is unavailable.");
            return null;
        }
        try {
            FeaturesService admin = (FeaturesService) getBundleContext().getService(ref);
            if (admin == null) {
                io.out.println("FeaturesService service is unavailable.");
                return null;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.