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

Examples of org.jboss.as.console.client.shared.model.SubsystemRecord


    public static String[] getDefaultSubsystem(String preferred, List<SubsystemRecord> existing)
    {
        if(existing.isEmpty())
            throw new RuntimeException("No subsystem provided!");

        SubsystemRecord chosen = null;
        for(SubsystemRecord subsys : existing)
        {
            if(subsys.getKey().equals(preferred))
            {
                chosen = subsys;
                break;
            }
        }

        if(null==chosen)
            chosen = existing.get(0);


        return resolveTokens(chosen.getKey());
    }
View Full Code Here


    public static String[] getDefaultSubsystem(String preferred, List<SubsystemRecord> existing)
    {
        if(existing.isEmpty())
            throw new RuntimeException("No subsystem provided!");

        SubsystemRecord chosen = null;
        for(SubsystemRecord subsys : existing)
        {
            if(subsys.getKey().equals(preferred))
            {
                chosen = subsys;
                break;
            }
        }

        if(null==chosen)
            chosen = firstAvailable(existing);

        return resolveTokens(chosen.getKey());
    }
View Full Code Here

        return resolveTokens(chosen.getKey());
    }

    private static SubsystemRecord firstAvailable(List<SubsystemRecord> existing) {

        SubsystemRecord match =  null;

        for(SubsystemRecord candidate : existing)
        {
            final SubsystemRegistry subsystemRegistry = Console.MODULES.getSubsystemRegistry();
            for(SubsystemExtensionMetaData ext : subsystemRegistry.getExtensions())
View Full Code Here

    public static String[] getDefaultSubsystem(String preferred, List<SubsystemRecord> existing)
    {
        if(existing.isEmpty())
            throw new RuntimeException("No subsystem provided!");

        SubsystemRecord chosen = null;
        for(SubsystemRecord subsys : existing)
        {
            if(subsys.getKey().equals(preferred))
            {
                chosen = subsys;
                break;
            }
        }

        if(null==chosen)
            chosen = firstAvailable(existing);

        return resolveTokens(chosen.getKey());
    }
View Full Code Here

        return resolveTokens(chosen.getKey());
    }

    private static SubsystemRecord firstAvailable(List<SubsystemRecord> existing) {

        SubsystemRecord match =  null;

        for(SubsystemRecord candidate : existing)
        {
            final SubsystemRegistry subsystemRegistry = Console.MODULES.getSubsystemRegistry();
            for(SubsystemExtensionMetaData ext : subsystemRegistry.getExtensions())
View Full Code Here

    public static String[] getDefaultSubsystem(String preferred, List<SubsystemRecord> existing)
    {
        if(existing.isEmpty())
            throw new RuntimeException("No subsystem provided!");

        SubsystemRecord chosen = null;
        for(SubsystemRecord subsys : existing)
        {
            if(subsys.getKey().equals(preferred))
            {
                chosen = subsys;
                break;
            }
        }

        if(null==chosen)
            chosen = firstAvailable(existing);

        return resolveTokens(chosen.getKey());
    }
View Full Code Here

        return resolveTokens(chosen.getKey());
    }

    private static SubsystemRecord firstAvailable(List<SubsystemRecord> existing) {

        SubsystemRecord match =  null;

        for(SubsystemRecord candidate : existing)
        {
            final SubsystemRegistry subsystemRegistry = Console.MODULES.getSubsystemRegistry();
            for(SubsystemExtensionMetaData ext : subsystemRegistry.getExtensions())
View Full Code Here

    public static String[] getDefaultSubsystem(String preferred, List<SubsystemRecord> existing)
    {
        if(existing.isEmpty())
            throw new RuntimeException("No subsystem provided!");

        SubsystemRecord chosen = null;
        for(SubsystemRecord subsys : existing)
        {
            if(subsys.getKey().equals(preferred))
            {
                chosen = subsys;
                break;
            }
        }

        if(null==chosen)
            chosen = firstAvailable(existing);

        return resolveTokens(chosen.getKey());
    }
View Full Code Here

        return resolveTokens(chosen.getKey());
    }

    private static SubsystemRecord firstAvailable(List<SubsystemRecord> existing) {

        SubsystemRecord match =  null;

        for(SubsystemRecord candidate : existing)
        {
            final SubsystemRegistry subsystemRegistry = Console.MODULES.getSubsystemRegistry();
            for(SubsystemExtensionMetaData ext : subsystemRegistry.getExtensions())
View Full Code Here

    public static String[] getDefaultSubsystem(String preferred, List<SubsystemRecord> existing)
    {
        if(existing.isEmpty())
            throw new RuntimeException("No subsystem provided!");

        SubsystemRecord chosen = null;
        for(SubsystemRecord subsys : existing)
        {
            if(subsys.getKey().equals(preferred))
            {
                chosen = subsys;
                break;
            }
        }

        if(null==chosen)
            chosen = firstAvailable(existing);

        return resolveTokens(chosen.getKey());
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.shared.model.SubsystemRecord

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.