Examples of CurrentProfileSelection


Examples of org.jboss.as.console.client.domain.profiles.CurrentProfileSelection

    public static ModelNode get() {
        ModelNode baseAddress = new ModelNode();
        baseAddress.setEmptyList();

        CurrentProfileSelection currentProfile = Console.MODULES.getCurrentSelectedProfile();
        if(currentProfile.getName()!=null)
            baseAddress.add("profile", currentProfile.getName());

        return baseAddress;
    }
View Full Code Here

Examples of org.jboss.as.console.client.domain.profiles.CurrentProfileSelection

    @BeforeClass
    public static void init() {
        injector = Guice.createInjector(new TestModule());

        CurrentProfileSelection profile = injector.getInstance(CurrentProfileSelection.class);
        profile.setName("default");
    }
View Full Code Here

Examples of org.jboss.as.console.client.domain.profiles.CurrentProfileSelection

        }
    }

    private void selectDefaultProfile(List<ProfileRecord> result) {

        CurrentProfileSelection profileSelection = Console.MODULES.getCurrentSelectedProfile();
        if(!profileSelection.isSet())
        {
            String name = result.get(0).getName();
            System.out.println("Eager profile selection: "+name);
            profileSelection.setName(name);
        }
    }
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.