Fix compilation warnings: replace deprecated org.apache.felix classes
[controller.git] / opendaylight / adsal / containermanager / shell / src / main / java / org / opendaylight / controller / containermanager / shell / ContainermgrGetRoles.java
1 package org.opendaylight.controller.containermanager.shell;
2
3 import org.apache.karaf.shell.commands.Command;
4 import org.apache.karaf.shell.console.OsgiCommandSupport;
5 import org.opendaylight.controller.containermanager.IContainerManagerShell;
6
7 @Command(scope = "containermanager", name = "containermgrGetRoles", description="Get container mgr roles")
8 public class ContainermgrGetRoles extends OsgiCommandSupport{
9     private IContainerManagerShell containerManager;
10
11     @Override
12     protected Object doExecute() throws Exception {
13         for(String p : containerManager.containermgrGetRoles()) {
14             System.out.println(p);
15         }
16         return null;
17     }
18
19     public void setContainerManager(IContainerManagerShell containerManager){
20         this.containerManager = containerManager;
21     }
22 }