src/main/java/org/jboss/loom/recog/ServerRecognizer.java
public static IServerType recognizeType( File serverRootDir ) throws MigrationException{
        for( Class<? extends IServerType> typeClass : findServerTypes() ){
            log.debug("    Trying " + typeClass.getSimpleName());
            IServerType type = instantiate(typeClass);
            if( type.isPresentInDir(serverRootDir) )
                return type;
        }
        return null;
    }
/**
     *  Ask all known implementations of IServerType whether their server is in the directory.
     * 
     *  TODO: Return an instance?
     */
Ask all known implementations of IServerType whether their server is in the directory.


Ask all known implementations of IServerType whether their server is in the directory .
public static IServerType recognizeType( File serverRootDir ) throws MigrationException{
        for( Class<? extends IServerType> typeClass : findServerTypes() ){
            log.debug("    Trying " + typeClass.getSimpleName());
            IServerType type = instantiate(typeClass);
            if( type.isPresentInDir(serverRootDir) )
                return type;
        }
        return null;
    }
public static IServerType recognizeType ( File serverRootDir ) throws MigrationException { for ( Class < ? extends IServerType > typeClass : findServerTypes ( ) ) { log . debug ( "    Trying " + typeClass . getSimpleName ( ) ) ; IServerType type = instantiate ( typeClass ) ; if ( type . isPresentInDir ( serverRootDir ) ) return type ; } return null ; }
Ask all known implementations of IServerType whether their server is in the directory.
Ask all known implementations of IServerType whether their server is in the directory .