Package org.jboss.as.console.client.domain.model

Examples of org.jboss.as.console.client.domain.model.ProfileStore


    }

    @Test
    public void loadProfiles() throws Exception
    {
        ProfileStore profileStore = injector.getInstance(ProfileStore.class);
        TestCallback<List<ProfileRecord>> callback = new TestCallback<List<ProfileRecord>>() {

            @Override
            public void onSuccess(List<ProfileRecord> result) {
                assertFalse(result.isEmpty());
                assertEquals("default", result.get(0).getName());
                didCallback = true;
            }
        };

        profileStore.loadProfiles(callback);

        synchronized (callback) {
            callback.wait(500);
        }
View Full Code Here


        BootstrapContext bootstrapContext = Console.MODULES.getBootstrapContext();

        if(!bootstrapContext.isStandalone())
        {
            ProfileStore profileStore = Console.MODULES.getProfileStore();

            profileStore.loadProfiles(new SimpleCallback<List<ProfileRecord>>() {

                @Override
                public void onFailure(Throwable caught) {
                    callback.onSuccess(Boolean.FALSE);
                    throw new RuntimeException(caught);
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.domain.model.ProfileStore

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.