Package org.socialmusicdiscovery.server.api

Examples of org.socialmusicdiscovery.server.api.ConfigurationContext


     */
    public <T extends BrowseService> T getBrowseService(String objectType) {
        try {
            if(browseServices.containsKey(objectType)) {
                T service = (T) browseServices.get(objectType).newInstance();
                ConfigurationContext context = configurationContexts.get(objectType);
                if (context == null) {
                    context = new MappedConfigurationContext(service.getClass().getName() + ".", new MergedConfigurationManager(new PersistentConfigurationManager()));
                }
                service.setConfiguration(context);
                return service;
View Full Code Here


     * @return The service or null if it doesn't exist
     */
    public <T extends OnlinePlayableElementService> T getOnlinePlayableElementService(String objectType) {
        try {
            T service = (T) playableElementServices.get(objectType).newInstance();
            ConfigurationContext context = configurationContexts.get(objectType);
            if (context == null) {
                context = new MappedConfigurationContext(service.getClass() + ".", new MergedConfigurationManager(new PersistentConfigurationManager()));
            }
            service.setConfiguration(context);
            return service;
View Full Code Here

    protected void executeImport(ProcessingStatusCallback progressHandler) {
      // TODO: implement core logic
      System.out.println("executeImport of acoustid plugin has been called");
      // WIP this.entityManager
     
      ConfigurationContext conf = this.getConfiguration();

      for(PlayableElement playableElement: this.playableElementRepository.findAll()) {
        System.out.println(playableElement.getUri());
      }
      // for PlayableElement playableElement:
View Full Code Here

TOP

Related Classes of org.socialmusicdiscovery.server.api.ConfigurationContext

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.