Examples of Config


Examples of org.gridkit.jvmtool.StackTraceClassifier.Config

        }
        if (action.isEmpty() || action.size() > 1) {
          SJK.failAndPrintUsage("You should choose one of " + allCommands);
        }
        if (classifier != null) {
            Config cfg = new Config();
            Cascade.parse(new FileReader(classifier), cfg);
            buckets = cfg.create();
        }
        if (classifier == null  && bucket != null) {
            SJK.failAndPrintUsage("--bucket option requires --classifer");
        }
        action.get(0).run();
View Full Code Here

Examples of org.ini4j.Config

        public boolean apply(String line) {
          return !line.contains("Opera Preferences version");
        }
      });

      Config config = new Config();
      // This config setting makes sure we can handle pref lines without
      // '=' chars in them. Such prefs will be treated as having value null.
      config.setEmptyOption(true);
      // This config setting makes sure we can handle pref lines with '\' in them.
      config.setEscape(false);
      Ini ini = new Ini();
      ini.setConfig(config);
      ini.load(new StringReader(Joiner.on("\n").join(filteredLines)));
      return ini;
    } catch (IOException e) {
View Full Code Here

Examples of org.j2cms.model.config.Config

       try {  
       EntityManagerFactory factory = Persistence.createEntityManagerFactory("j2cmsSSH");//sessionFactory
       EntityManager em = factory.createEntityManager();
       em.getTransaction().begin();//开始事务
       Config config = em.find(Config.class, 1);
       em.getTransaction().commit();   
       if(config.getUuid()==null||"".equals(config.getUuid())||config.getUuid().length()!=36)
       {
         config.setUuid(java.util.UUID.randomUUID().toString());
       }
       InetAddress addr = InetAddress.getLocalHost();
      String ip=addr.getHostAddress().toString();
      config.setIp(ip);
      config.setCtp(servletContext.getContextPath());
      try {
        String logined = "<html><head><title>管理中心-Powered by J2CMS</title><meta http-equiv=Content-Type content=text/html;charset=utf-8></head><frameset rows='85,*'  frameborder='NO' border='0' framespacing='0'><frame src='manage/top' noresize='noresize' frameborder='NO' name='topFrame' scrolling='no' marginwidth='0' marginheight='0' target='main' /><frameset cols='250,*' id='frame'><frame src='manage/left' name='leftFrame' noresize='noresize' marginwidth='0' marginheight='0' frameborder='0' scrolling='auto' target='main' /><frame src='manage/right' name='main' marginwidth='0' marginheight='0' frameborder='0' scrolling='auto' target='_self' /></frameset></frameset><noframes><body></body></noframes></html>";
        servletContext.setAttribute("logined", logined);
      } catch (Exception e) {
        System.out.println("操作失败!");
View Full Code Here

Examples of org.jboss.arquillian.container.test.api.Config

    private void startServer(RunningServer server) {
        if (server.config().isEmpty())  // default config
            getController().start(server.name());
        else
            getController().start(server.name(), new Config().add(SERVER_CONFIG_PROPERTY, server.config()).map());
    }
View Full Code Here

Examples of org.jboss.test.xml.config.Config

      configType.setHandler(new DefaultElementHandler()
      {
         public Object startElement(Object parent, QName name, ElementBinding element)
         {
            return new Config();
         }
      }
      );

      configType.pushInterceptor(new QName("attribute"), new DefaultElementInterceptor()
      {
         public void add(Object parent, Object child, QName name)
         {
            Config config = (Config)parent;
            Config.ConfigAttr attr = (Config.ConfigAttr)child;
            Collection attrs = config.getAttrs();
            if(attrs == null)
            {
               attrs = new ArrayList();
               config.setAttrs(attrs);
            }
            attrs.add(attr);
         }
      }
      );

      configType.pushInterceptor(new QName("beans"), new DefaultElementInterceptor()
      {
         public void add(Object parent, Object child, QName name)
         {
            Config config = (Config)parent;
            config.beans = (Collection)child;
         }
      }
      );

      configType.pushInterceptor(new QName("list"), new DefaultElementInterceptor()
      {
         public void add(Object parent, Object child, QName name)
         {
            Config config = (Config)parent;
            config.list = (Collection)child;
         }
      }
      );

      configType.pushInterceptor(new QName("map"), new DefaultElementInterceptor()
      {
         public void add(Object parent, Object child, QName name)
         {
            Config config = (Config)parent;
            config.map = (Map)child;
         }
      }
      );
View Full Code Here

Examples of org.jboss.ws.metadata.wsse.Config

         return config.getDefaultConfig();

      Operation operation = port.getOperations().get(opName);
      if (operation == null)
      {
         Config portConfig = port.getDefaultConfig();
         return (portConfig == null) ? config.getDefaultConfig() : portConfig;

      }

      return operation.getConfig();
View Full Code Here

Examples of org.jclouds.docker.domain.Config

         for (String containerDir : templateOptions.getVolumes().get().values()) {
            volumes.put(containerDir, Maps.newHashMap());
         }
         containerConfigBuilder.volumes(volumes);
      }
      Config containerConfig = containerConfigBuilder.build();

      logger.debug(">> creating new container with containerConfig(%s)", containerConfig);
      Container container = api.getRemoteApi().createContainer(name, containerConfig);
      logger.trace("<< container(%s)", container.getId());
View Full Code Here

Examples of org.jenkinsci.lib.configprovider.model.Config

   
    private InputStream getManagedFile(String templateName) {
        Plugin plugin = Jenkins.getInstance().getPlugin("config-file-provider");
        InputStream stream = null;
        if(plugin != null) {
            Config config = null;
            ConfigProvider provider = getTemplateConfigProvider();
            for(Config c : provider.getAllConfigs()) {
                if(c.name.equalsIgnoreCase(templateName) && provider.isResponsibleFor(c.id)) {
                    config = c;
                    break;
View Full Code Here

Examples of org.jolokia.backend.Config

        verify(handler);
    }

    @Test
    public void registerAtMBeanServer() throws MalformedObjectNameException, MBeanRegistrationException, InstanceAlreadyExistsException, NotCompliantMBeanException {
        Config config = new Config(null,null,null);
        ObjectName oName = new ObjectName("jolokia:type=Config");
        ObjectInstance oInstance = new ObjectInstance(oName,Config.class.getName());
        MBeanServer server = EasyMock.createMock(MBeanServer.class);
        expect(server.registerMBean(eq(config),eq(oName))).andReturn(oInstance);
        replay(server);
View Full Code Here

Examples of org.jolokia.mbean.Config

    public void init(HistoryStore pHistoryStore, DebugStore pDebugStore)
            throws MalformedObjectNameException, MBeanRegistrationException, InstanceAlreadyExistsException, NotCompliantMBeanException {
        mBeanServerHandler.init();

        // Register the Config MBean
        Config config = new Config(pHistoryStore,pDebugStore,qualifier,Config.OBJECT_NAME);
        mBeanServerHandler.registerMBean(config,config.getObjectName());

        // Register another Config MBean (which dispatched to the stores anyway) for access by
        // jmx4perl version < 0.80
        Config legacyConfig = new Config(pHistoryStore,pDebugStore,qualifier,Config.LEGACY_OBJECT_NAME);
        mBeanServerHandler.registerMBean(legacyConfig,legacyConfig.getObjectName());
    }
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.