Package org.socialmusicdiscovery.server.api.mediaimport

Examples of org.socialmusicdiscovery.server.api.mediaimport.PostProcessor


            // /META-INF/services/org.socialmusicdiscovery.server.api.mediaimport.PostProcessor
            Map<String, PostProcessor> postProcessors = new HashMap<String,PostProcessor>();
            ServiceLoader<PostProcessor> postProcessorLoader = ServiceLoader.load(PostProcessor.class);
            Iterator<PostProcessor> postProcessorIterator = postProcessorLoader.iterator();
            while(postProcessorIterator.hasNext()) {
                PostProcessor postProcessor = postProcessorIterator.next();
                postProcessors.put(postProcessor.getId(),postProcessor);
            }
            mediaImportManager = new MediaImportManager(mediaImporters, postProcessors);
        }
        return mediaImportManager;
     }
View Full Code Here

TOP

Related Classes of org.socialmusicdiscovery.server.api.mediaimport.PostProcessor

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.