Package org.openengsb.core.api

Examples of org.openengsb.core.api.OsgiUtilsService


@Command(scope = "openengsb", name = "domains", description = "Prints out the available OpenEngSB domains.")
public class DomainInfoCommand extends OsgiCommandSupport {

    @Override
    protected Object doExecute() throws Exception {
        OsgiUtilsService service = new DefaultOsgiUtilsService(getBundleContext());
        List<DomainProvider> serviceList = service.listServices(DomainProvider.class);
        Collections.sort(serviceList, Comparators.forDomainProvider());
        System.out.println("Services");
        for (DomainProvider dp : serviceList) {
            OutputStreamFormater.printValue(dp.getName().getString(Locale.getDefault()),
                dp.getDescription().getString(Locale.getDefault()));
View Full Code Here

TOP

Related Classes of org.openengsb.core.api.OsgiUtilsService

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.