Package org.exoplatform.webui.config

Examples of org.exoplatform.webui.config.WebuiConfiguration


    */
   public ConfigurationManager(InputStream inputStream) throws Exception
   {
      IBindingFactory bfact = BindingDirectory.getFactory(WebuiConfiguration.class);
      IUnmarshallingContext uctx = bfact.createUnmarshallingContext();
      WebuiConfiguration config = (WebuiConfiguration)uctx.unmarshalDocument(inputStream, null);
      ClassLoader cl = Thread.currentThread().getContextClassLoader();
      if (config.getAnnotationClasses() != null)
      {
         for (String annotationClass : config.getAnnotationClasses())
         {
            //process annotation and get the Component
            Component[] components = annotationToComponents(cl, annotationClass);
            setComponentConfigs(components);
         }
      }
      if (config.getComponents() != null)
      {
         for (Component component : config.getComponents())
         {
            String key = component.getType();
            if (component.getId() != null)
               key = key + ":" + component.getId();
            configs_.put(key, component);
         }
      }

      application_ = config.getApplication();
   }
View Full Code Here


        // Logger first
        log = LoggerFactory.getLogger(ConfigurationManager.class);

        IBindingFactory bfact = BindingDirectory.getFactory(WebuiConfiguration.class);
        IUnmarshallingContext uctx = bfact.createUnmarshallingContext();
        WebuiConfiguration config = (WebuiConfiguration) uctx.unmarshalDocument(inputStream, null);
        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        if (config.getAnnotationClasses() != null) {
            for (String annotationClass : config.getAnnotationClasses()) {
                // process annotation and get the Component
                Component[] components = annotationToComponents(cl, annotationClass);
                setComponentConfigs(components);
            }
        }
        if (config.getComponents() != null) {
            for (ComponentMetaData componentMetaData : config.getComponents()) {
                String key = componentMetaData.getType();
                if (componentMetaData.getId() != null) {
                    key = key + ":" + componentMetaData.getId();
                }
                configs_.put(key, new Component(componentMetaData));
            }
        }

        application_ = config.getApplication();
    }
View Full Code Here

    */
   public ConfigurationManager(InputStream inputStream) throws Exception
   {
      IBindingFactory bfact = BindingDirectory.getFactory(WebuiConfiguration.class);
      IUnmarshallingContext uctx = bfact.createUnmarshallingContext();
      WebuiConfiguration config = (WebuiConfiguration)uctx.unmarshalDocument(inputStream, null);
      ClassLoader cl = Thread.currentThread().getContextClassLoader();
      if (config.getAnnotationClasses() != null)
      {
         for (String annotationClass : config.getAnnotationClasses())
         {
            //process annotation and get the Component
            Component[] components = annotationToComponents(cl, annotationClass);
            setComponentConfigs(components);
         }
      }
      if (config.getComponents() != null)
      {
         for (Component component : config.getComponents())
         {
            String key = component.getType();
            if (component.getId() != null)
               key = key + ":" + component.getId();
            configs_.put(key, component);
         }
      }

      application_ = config.getApplication();
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.webui.config.WebuiConfiguration

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.