Examples of GlobalConfiguration


Examples of com.softwarementors.extjs.djn.config.GlobalConfiguration

  protected void createDirectJNgineRouter(ServletConfig configuration) throws ServletException {
    assert configuration != null;

    Timer subtaskTimer = new Timer();
    GlobalConfiguration globalConfiguration = createGlobalConfiguration(configuration);
    String registryConfiguratorClassName = ServletUtils.getParameter(configuration, REGISTRY_CONFIGURATOR_CLASS, null);  
    if( logger.isInfoEnabled() ) {
      String value = registryConfiguratorClassName;
      if( value == null) {
        value = "";
      }
      logger.info( "Servlet GLOBAL configuration: " + REGISTRY_CONFIGURATOR_CLASS + "=" + value );
    }
   
    Class<? extends ServletRegistryConfigurator> registryConfiguratorClass = getRegistryConfiguratorClass(registryConfiguratorClassName);
    List<ApiConfiguration> apiConfigurations = createApiConfigurationsFromServletConfigurationApi(configuration);
    subtaskTimer.stop();
    subtaskTimer.logDebugTimeInMilliseconds("Djn initialization: Servlet Configuration Load time");
   
    subtaskTimer.restart();
    Registry registry = new Registry( globalConfiguration );
    Scanner scanner = new Scanner(registry);
    scanner.scanAndRegisterApiConfigurations( apiConfigurations );
    subtaskTimer.stop();
    subtaskTimer.logDebugTimeInMilliseconds("Djn initialization: Standard Api processing time");

    if( registryConfiguratorClass != null ) {
      subtaskTimer.restart();
      performCustomRegistryConfiguration( registryConfiguratorClass, registry, configuration );
      subtaskTimer.stop();
      subtaskTimer.logDebugTimeInMilliseconds("Djn initialization: Custom Registry processing time");
    }
   
    subtaskTimer.restart();
    try {
      CodeFileGenerator.updateSource(registry, globalConfiguration.getCreateSourceFiles());     
      subtaskTimer.stop();
      subtaskTimer.logDebugTimeInMilliseconds("Djn initialization: Api Files creation time");
    }
    catch( IOException ex ) {
      ServletException e = new ServletException( "Unable to create DirectJNgine API files",  ex );
View Full Code Here

Examples of eu.stratosphere.configuration.GlobalConfiguration

      Field confDataMapField = GlobalConfiguration.class.getDeclaredField("confData");
     
      singletonInstanceField.setAccessible(true);
      confDataMapField.setAccessible(true);
     
      GlobalConfiguration gconf = (GlobalConfiguration) singletonInstanceField.get(null);
      if (gconf != null) {
        @SuppressWarnings("unchecked")
        Map<String, String> confData = (Map<String, String>) confDataMapField.get(gconf);
        confData.clear();
      }
View Full Code Here

Examples of giggler.config.GlobalConfiguration

    return PLUGIN;
  }

    public void init() {

        globalConfiguration = new GlobalConfiguration("configuration/giggler.ini", "data");
    }
View Full Code Here

Examples of liquibase.configuration.GlobalConfiguration

        return null;
    }

    protected boolean shouldRun() {
        LiquibaseConfiguration configuration = LiquibaseConfiguration.getInstance();
        GlobalConfiguration globalConfiguration = configuration.getConfiguration(GlobalConfiguration.class);
        if (!globalConfiguration.getShouldRun()) {
            log("Liquibase did not run because " + configuration.describeValueLookupLogic(globalConfiguration.getProperty(GlobalConfiguration.SHOULD_RUN)) + " was set to false", Project.MSG_INFO);
            return false;
        }
        return true;
    }
View Full Code Here

Examples of org.apache.flink.configuration.GlobalConfiguration

     
      singletonInstanceField.setAccessible(true);
      conf.setAccessible(true);
      map.setAccessible(true);
     
      GlobalConfiguration gconf = (GlobalConfiguration) singletonInstanceField.get(null);
      if (gconf != null) {
        Configuration confObject = (Configuration) conf.get(gconf);
        @SuppressWarnings("unchecked")
        Map<String, Object> confData = (Map<String, Object>) map.get(confObject);
        confData.clear();
View Full Code Here

Examples of org.berlin.patterns.swing.app.conf.GlobalConfiguration

*/
public class VerifyConfigurationFileLoader {
    private static final Logger LOGGER = LoggerFactory.getLogger(VerifyConfigurationFileLoader.class);   
    public static void main(final String [] args) {       
        System.out.println("Verifying ...");                   
        final GlobalConfiguration globalConf = new GlobalConfiguration().load(GlobalConfiguration.PATH);
        LOGGER.info(globalConf.toString());           
        System.out.println("Done");
       
    } // End of the method //
View Full Code Here

Examples of org.ejbca.config.GlobalConfiguration

  /**
   * Method that returns the global configuration and updates it if necessary.
   */
  @Transient
  public GlobalConfiguration getGlobalConfiguration(){
    GlobalConfiguration returnval = new GlobalConfiguration();
    returnval.loadData(getData());
    return returnval;
  }
View Full Code Here

Examples of org.hibernate.envers.configuration.internal.GlobalConfiguration

    Thread.currentThread().setContextClassLoader( ClassLoaderHelper.getContextClassLoader() );

    final Properties properties = cfg.getProperties();

    final ReflectionManager reflectionManager = cfg.getReflectionManager();
    this.globalCfg = new GlobalConfiguration( properties, classLoaderService );
    final RevisionInfoConfiguration revInfoCfg = new RevisionInfoConfiguration( globalCfg );
    final RevisionInfoConfigurationResult revInfoCfgResult = revInfoCfg.configure( cfg, reflectionManager );
    this.auditEntCfg = new AuditEntitiesConfiguration( properties, revInfoCfgResult.getRevisionInfoEntityName() );
    this.auditProcessManager = new AuditProcessManager( revInfoCfgResult.getRevisionInfoGenerator() );
    this.revisionInfoQueryCreator = revInfoCfgResult.getRevisionInfoQueryCreator();
View Full Code Here

Examples of org.infinispan.config.GlobalConfiguration

   private static volatile int containerIndex = 1;
  
   public static EmbeddedCacheManager createCacheContainer(boolean local, String passivationDir, boolean totalReplication, boolean purgeCacheLoader) throws Exception
   {
      GlobalConfiguration global = local ? GlobalConfiguration.getNonClusteredDefault() : GlobalConfiguration.getClusteredDefault();
      global.setClusterName("testing");
      global.setCacheManagerName("container" + containerIndex++);
      global.setStrictPeerToPeer(false);

      Configuration config = new Configuration();
      config.setInvocationBatchingEnabled(true);
      config.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
      config.setSyncReplTimeout(20000);
      config.setLockAcquisitionTimeout(15000);
      config.setCacheMode(local ? CacheMode.LOCAL : (totalReplication ? CacheMode.REPL_SYNC : CacheMode.DIST_SYNC));
     
      CacheMode mode = config.getCacheMode();

      config.setFetchInMemoryState(mode.isReplicated());
     
      // Block for commits -- no races between test driver and replication
      config.setSyncCommitPhase(true);
      config.setSyncRollbackPhase(true);
     
      if (passivationDir != null)
      {
         CacheLoaderManagerConfig managerConfig = new CacheLoaderManagerConfig();
         managerConfig.setPassivation(true);
         managerConfig.setPreload(!purgeCacheLoader);
        
         FileCacheStoreConfig fileConfig = new FileCacheStoreConfig();
         fileConfig.setLocation(passivationDir);
         fileConfig.setFetchPersistentState(mode.isReplicated());
         fileConfig.setPurgeOnStartup(purgeCacheLoader);
        
         managerConfig.setCacheLoaderConfigs(Collections.<CacheLoaderConfig>singletonList(fileConfig));
        
         config.setCacheLoaderManagerConfig(managerConfig);
      }
     
      final EmbeddedCacheManager sessionContainer = new DefaultCacheManager(global, config, false);
     
      global = local ? GlobalConfiguration.getNonClusteredDefault() : GlobalConfiguration.getClusteredDefault();
      global.setClusterName("testing-jvmroute");
      global.setCacheManagerName("container" + containerIndex++);
      global.setStrictPeerToPeer(false);
     
      config = new Configuration();
      config.setInvocationBatchingEnabled(true);
      config.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
      config.setSyncReplTimeout(20000);
View Full Code Here

Examples of org.infinispan.config.GlobalConfiguration

   public GlobalConfiguration parseGlobalConfiguration() {
      assertInitialized();
      if (gc == null) {
         Element globalElement = getSingleElementInCoreNS("global", rootElement);
         Configuration defaultConfig = parseDefaultConfiguration();
         gc = new GlobalConfiguration();
         gc.setDefaultConfiguration(defaultConfig);
         // there may not be a <global /> element in the config!!
         if (globalElement != null) {
            globalElement.normalize();
            configureAsyncListenerExecutor(getSingleElementInCoreNS("asyncListenerExecutor", globalElement), gc);
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.