Examples of ContextConfig


Examples of com.adaptrex.core.config.ContextConfig

    @SuppressWarnings("unchecked")
  @Override
    public void encodeBegin(FacesContext context) throws IOException {
      try {
          Map<String,Object> a = getAttributes();
          ContextConfig contextConfig = CdiService.getContextConfig();
          AdaptrexConfig adaptrexConfig = CdiService.getAdaptrexConfig();
         
          Map<String,Object> extConfig = new HashMap<String,Object>();
          if (adaptrexConfig.get("ext") != null) {
            extConfig.putAll((Map<String,Object>) adaptrexConfig.get("ext"));
          }
          if (contextConfig.get("ext") != null) {
            extConfig.putAll((Map<String,Object>) contextConfig.get("ext"));
          }
         
          /*
           * If we're configuring Ext, do it here
           */
 
View Full Code Here

Examples of com.adito.boot.ContextConfig

            socket.close();
        }
    }

    private PropertyDefinition getWebServerPortDefinition() throws IOException, JDOMException {
        ContextConfig config = new ContextConfig(getClass().getClassLoader());
        return config.getDefinition("webServer.port");
    }
View Full Code Here

Examples of com.adito.boot.ContextConfig

                                + "be determined. Check you network configuration. One possible cause is "
                                + "a misconfigured 'hosts' file (e.g. on UNIX-like systems this would be "
                                + "/etc/hosts, on Windows XP it would be " + "C:\\Windows\\System32\\Drivers\\Etc\\Hosts).");
            }

            PropertyClassManager.getInstance().registerPropertyClass(contextConfiguration = new ContextConfig(getClass().getClassLoader()));

            // Display some information about the system we are running on
            displaySystemInfo();

            // Load the context property definitions
View Full Code Here

Examples of org.apache.accumulo.start.classloader.vfs.ContextManager.ContextConfig

    cm.setContextConfig(new ContextsConfig() {
      @Override
      public ContextConfig getContextConfig(String context) {
        if (context.equals("CX1")) {
          return new ContextConfig(uri1.toString(), true);
        } else if (context.equals("CX2")) {
          return new ContextConfig(uri2.toString(), true);
        }
        return null;
      }
    });
View Full Code Here

Examples of org.apache.catalina.startup.ContextConfig

        context.setPath(path);
       
        if (cl != null)
            context.setParentClassLoader(cl);
       
        ContextConfig config = new ContextConfig();
        config.setCustomAuthenticators(authenticators);
        ((Lifecycle) context).addLifecycleListener(config);

        context.setDelegate(true);
        return (context);
View Full Code Here

Examples of org.apache.catalina.startup.ContextConfig

        if( log.isDebugEnabled() )
            log.debug("Creating EJBWebService context '" + contextPath + "'.");

        TomcatEJBWebServiceContext context = new TomcatEJBWebServiceContext(contextPath, webServiceContainer, securityRealmName, realmName, transportGuarantee, authMethod, classLoader);

        ContextConfig config = new ContextConfig();
        config.setCustomAuthenticators(authenticators);
        ((Lifecycle) context).addLifecycleListener(config);

        return (context);

    }
View Full Code Here

Examples of org.apache.catalina.startup.ContextConfig

                }
                if (configClassname != null) {
                    Class clazz = Class.forName(String.valueOf(configClassname));
                    config = (LifecycleListener) clazz.newInstance();
                } else {
                    config = new ContextConfig();
                }
            } catch (Exception e) {
                log.warn("Error creating ContextConfig for " + parentName, e);
                throw e;
            }
View Full Code Here

Examples of org.apache.catalina.startup.ContextConfig

                host.setAutoDeploy(false);
                Registry.getRegistry(null, null)
                    .registerComponent(host, parentName, null);
                mserver.invoke(parentName, "init", new Object[] {}, new String[] {} );
            }
            ContextConfig config = new ContextConfig();
            this.addLifecycleListener(config);

            log.debug( "AddChild " + parentName + " " + this);
            try {
                mserver.invoke(parentName, "addChild", new Object[] { this },
View Full Code Here

Examples of org.apache.catalina.startup.ContextConfig

                }
                if (configClassName != null) {
                    Class clazz = Class.forName(configClassName);
                    config = (LifecycleListener) clazz.newInstance();
                } else {
                    config = new ContextConfig();
                }
            } catch (Exception e) {
                log.warn("Error creating ContextConfig for " + parentName, e);
                throw e;
            }
View Full Code Here

Examples of org.apache.catalina.startup.ContextConfig

                }
                if (configClassName != null) {
                    Class clazz = Class.forName(configClassName);
                    config = (LifecycleListener) clazz.newInstance();
                } else {
                    config = new ContextConfig();
                }
            } catch (Exception e) {
                log.warn("Error creating ContextConfig for " + parentName, e);
                throw e;
            }
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.