Package org.fenrir.yggdrasil.core.definition

Examples of org.fenrir.yggdrasil.core.definition.DefaultDefinitionBuilder


          }
          URL applicationFileUrl = applicationFiles.nextElement();
          if(applicationFiles.hasMoreElements()){
            throw new ApplicationException("S'han trobat més d'un fitxer de definició per l'aplicació");
          }
          DefaultDefinitionBuilder builder = new DefaultDefinitionBuilder();
          ApplicationDefinition applicationDefinition = builder.buildDefinition(applicationFileUrl);
          applicationContext.addDefinition(applicationDefinition);
         
          Enumeration<URL> pluginFiles = this.getClass().getClassLoader().getResources(PLUGIN_DEFINITION_FILE);
          while(pluginFiles.hasMoreElements()){
            URL pluginFileURL = pluginFiles.nextElement();
            PluginDefinition pluginDefinition = builder.buildDefinition(pluginFileURL);
            applicationContext.addDefinition(pluginDefinition);
          }
        }
        catch(Exception e){
          log.error("Error recuperant la definició de l'aplicació: {}", e.getMessage(), e);
View Full Code Here

TOP

Related Classes of org.fenrir.yggdrasil.core.definition.DefaultDefinitionBuilder

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.