Examples of TobagoConfigFragment


Examples of org.apache.myfaces.tobago.internal.config.TobagoConfigFragment

      CollectionUtils.addAll(urls, classLoader.getResources(META_INF_TOBAGO_CONFIG_XML));
      CollectionUtils.addAll(urls, classLoader.getResources(META_INF_TOBAGO_THEME_XML));

      for (URL themeUrl : urls) {
        if (themeUrl.toString().endsWith(META_INF_TOBAGO_CONFIG_XML)) {
          TobagoConfigFragment tobagoConfig = new TobagoConfigParser().parse(themeUrl);
          for (ThemeImpl theme : tobagoConfig.getThemeDefinitions()) {
            if (theme.isVersioned()) {
              String themeUrlStr = themeUrl.toString();
              int index = themeUrlStr.indexOf(META_INF_TOBAGO_CONFIG_XML);
              String metaInf = themeUrlStr.substring(0, index) + "META-INF/MANIFEST.MF";
              Properties properties = new Properties();
View Full Code Here

Examples of org.apache.myfaces.tobago.internal.config.TobagoConfigFragment

      CollectionUtils.addAll(urls, classLoader.getResources(META_INF_TOBAGO_THEME_XML));

      for (URL themeUrl : urls) {
        ThemeImpl theme;
        if (themeUrl.toString().endsWith(META_INF_TOBAGO_CONFIG_XML)) {
          TobagoConfigFragment tobagoConfig = new TobagoConfigParser().parse(themeUrl);
          theme = (ThemeImpl) tobagoConfig.getThemeDefinitions().get(0);
        } else {
          // the old way
          theme = parser.parse(themeUrl);
        }
        themeBuilder.addTheme(theme);
View Full Code Here

Examples of org.apache.myfaces.tobago.internal.config.TobagoConfigFragment

      CollectionUtils.addAll(urls, classLoader.getResources(META_INF_TOBAGO_CONFIG_XML));
      CollectionUtils.addAll(urls, classLoader.getResources(META_INF_TOBAGO_THEME_XML));

      for (URL themeUrl : urls) {
        if (themeUrl.toString().endsWith(META_INF_TOBAGO_CONFIG_XML)) {
          TobagoConfigFragment tobagoConfig = new TobagoConfigParser().parse(themeUrl);
          for (ThemeImpl theme : tobagoConfig.getThemeDefinitions()) {
            if (theme.isVersioned()) {
              String themeUrlStr = themeUrl.toString();
              int index = themeUrlStr.indexOf(META_INF_TOBAGO_CONFIG_XML);
              String metaInf = themeUrlStr.substring(0, index) + "META-INF/MANIFEST.MF";
              Properties properties = new Properties();
View Full Code Here

Examples of org.apache.myfaces.tobago.internal.config.TobagoConfigFragment

      CollectionUtils.addAll(urls, classLoader.getResources(META_INF_TOBAGO_CONFIG_XML));
      CollectionUtils.addAll(urls, classLoader.getResources(META_INF_TOBAGO_THEME_XML));

      for (URL themeUrl : urls) {
        if (themeUrl.toString().endsWith(META_INF_TOBAGO_CONFIG_XML)) {
          TobagoConfigFragment tobagoConfig = new TobagoConfigParser().parse(themeUrl);
          for (ThemeImpl theme : tobagoConfig.getThemeDefinitions()) {
            addThemeResources(resources, themeUrl, theme);
          }
        } else {
          // the old way
          addThemeResources(resources, themeUrl, parser.parse(themeUrl));
View Full Code Here

Examples of org.apache.myfaces.tobago.internal.config.TobagoConfigFragment

      final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
      final Enumeration<URL> urls = classLoader.getResources(META_INF_TOBAGO_CONFIG_XML);

      while (urls.hasMoreElements()) {
        final URL tobagoConfigUrl = urls.nextElement();
        final TobagoConfigFragment tobagoConfig = new TobagoConfigParser().parse(tobagoConfigUrl);
        for (final ThemeImpl theme : tobagoConfig.getThemeDefinitions()) {
          detectThemeVersion(tobagoConfigUrl, theme);
          themeBuilder.addTheme(theme);
          final String prefix = ensureSlash(theme.getResourcePath());
          final String protocol = tobagoConfigUrl.getProtocol();
          // tomcat uses jar // weblogic uses zip // IBM WebSphere uses wsjar
View Full Code Here

Examples of org.apache.myfaces.tobago.internal.config.TobagoConfigFragment

      final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
      final Enumeration<URL> urls = classLoader.getResources(META_INF_TOBAGO_CONFIG_XML);

      while (urls.hasMoreElements()) {
        URL tobagoConfigUrl = urls.nextElement();
        TobagoConfigFragment tobagoConfig = new TobagoConfigParser().parse(tobagoConfigUrl);
        for (ThemeImpl theme : tobagoConfig.getThemeDefinitions()) {
          detectThemeVersion(tobagoConfigUrl, theme);
          themeBuilder.addTheme(theme);
          final String prefix = ensureSlash(theme.getResourcePath());
          final String protocol = tobagoConfigUrl.getProtocol();
          // tomcat uses jar // weblogic uses zip // IBM WebSphere uses wsjar
View Full Code Here

Examples of org.apache.myfaces.tobago.internal.config.TobagoConfigFragment

      final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
      final Enumeration<URL> urls = classLoader.getResources(META_INF_TOBAGO_CONFIG_XML);

      while (urls.hasMoreElements()) {
        final URL tobagoConfigUrl = urls.nextElement();
        final TobagoConfigFragment tobagoConfig = new TobagoConfigParser().parse(tobagoConfigUrl);
        for (final ThemeImpl theme : tobagoConfig.getThemeDefinitions()) {
          detectThemeVersion(tobagoConfigUrl, theme);
          themeBuilder.addTheme(theme);
          final String prefix = ensureSlash(theme.getResourcePath());
          final String protocol = tobagoConfigUrl.getProtocol();
          // tomcat uses jar // weblogic uses zip // IBM WebSphere uses wsjar
View Full Code Here

Examples of org.apache.myfaces.tobago.internal.config.TobagoConfigFragment

      CollectionUtils.addAll(urls, classLoader.getResources(META_INF_TOBAGO_CONFIG_XML));
      CollectionUtils.addAll(urls, classLoader.getResources(META_INF_TOBAGO_THEME_XML));

      for (URL themeUrl : urls) {
        if (themeUrl.toString().endsWith(META_INF_TOBAGO_CONFIG_XML)) {
          TobagoConfigFragment tobagoConfig = new TobagoConfigParser().parse(themeUrl);
          for (ThemeImpl theme : tobagoConfig.getThemeDefinitions()) {
            addThemeResources(resources, themeUrl, theme);
          }
        } else {
          // the old way
          addThemeResources(resources, themeUrl, parser.parse(themeUrl));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.