Examples of Configurator


Examples of org.apache.ojb.broker.util.configuration.Configurator

    {
        if (log.isDebugEnabled()) log.debug("Instantiate PersistenceBrokerFactory");
        Class pbfClass = null;
        try
        {
            Configurator configurator = OjbConfigurator.getInstance();
            Configuration config = configurator.getConfigurationFor(null);
            pbfClass = config.getClass(PBF_KEY, null);
            if(pbfClass == null)
            {
                log.error("Creation of PersistenceBrokerFactory (PBF) instance failed, can't get PBF class object");
                throw new OJBRuntimeException("Property for key '" + PBF_KEY + "' can not be found in properties file");
            }
            PersistenceBrokerFactoryIF result = (PersistenceBrokerFactoryIF) ClassHelper.newInstance(pbfClass);
            configurator.configure(result);
            log.info("PersistencebrokerFactory class instantiated: " + result);
            return result;
        }
        catch (Exception e)
        {
View Full Code Here

Examples of org.apache.qpid.management.configuration.Configurator

    private final String _5LettersString = "12345";
   
    @Override
    protected void setUp () throws Exception
    {
        Configurator configurator = new Configurator();
        configurator.configure();
        _property = new QpidProperty();
        _property.setName("name");
        _property.setAccessMode(AccessMode.RW);
        _property.setType(new Str16());
    }
View Full Code Here

Examples of org.apache.ws.jaxme.util.Configurator

          (packageName.replace('.', '/') + '/') : "") + "Configuration.xml";
      URL url = getClassLoader().getResource(configFileName);
      if (url != null) {
        try {
          Configuration c = new Configuration(this);
          Configurator configurator = new Configurator();
          configurator.setNamespace(CONFIGURATION_URI);
          configurator.setRootObject(c);
          SAXParser sp = spf.newSAXParser();
          XMLReader xr = sp.getXMLReader();
          xr.setContentHandler(configurator);
          InputSource isource = new InputSource(url.openStream());
          isource.setSystemId(url.toString());
View Full Code Here

Examples of org.directwebremoting.extend.Configurator

            {
                foundConfig = true;

                try
                {
                    Configurator configurator = LocalUtil.classNewInstance(INIT_CUSTOM_CONFIGURATOR, value, Configurator.class);
                    configurator.configure(container);
                    Loggers.STARTUP.debug("Loaded config from: " + value);
                }
                catch (Exception ex)
                {
                    Loggers.STARTUP.error("Failed to start custom configurator", ex);
View Full Code Here

Examples of org.eclipse.equinox.internal.provisional.configurator.Configurator

        IStatus status = engine.perform(profile, set, provisioningPlan.getOperands(), context, monitor);
        if (applyConfiguration) {
            // Applying configuration without restarting the server. But still there are fixes to be done
            try {
                Configurator configurator = ServiceHolder.getConfigurator();
                configurator.applyConfiguration();
            } catch (Exception e) {
                throw new ProvisioningException(e.getMessage(), e);
            }
        }
        return status;
View Full Code Here

Examples of org.emrys.webosgi.launcher.configurator.Configurator

   * Runs the apply console command
   */
  public void run() {
    ServiceTracker tracker = new ServiceTracker(context, Configurator.class.getName(), null);
    tracker.open();
    Configurator configurator = (Configurator) tracker.getService();
    if (configurator != null) {
      try {
        if (configURL != null)
          configurator.applyConfiguration(configURL);
        else
          configurator.applyConfiguration();
       
        if (configurator.getUrlInUse() == null)
          interpreter.println("Config URL not set.");
      } catch (IOException e) {
        interpreter.println(e.getMessage());
      }
    } else {
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.Configurator

    @SuppressWarnings({ "rawtypes", "unchecked" })
    private Object constructDrone(Method method, Class<?> type, Class<? extends Annotation> qualifier) {
        DroneRegistry regs = registry.get();
        ArquillianDescriptor desc = arquillianDescriptor.get();

        Configurator configurator = regs.getConfiguratorFor(type);
        Instantiator instantiator = regs.getInstantiatorFor(type);

        // store in map if not stored already
        DroneContext dc = methodContext.get().getOrCreate(method);

        DroneConfiguration configuration = configurator.createConfiguration(desc, qualifier);
        dc.add(configuration.getClass(), qualifier, configuration);

        Object instance = instantiator.createInstance(configuration);
        dc.add(type, qualifier, instance);
View Full Code Here

Examples of org.jgroups.stack.Configurator

        props=prot_spec;
        this.harness=harness;
        props="LOOPBACK:" + props; // add a loopback layer at the bottom of the stack

        config=new Configurator();
        JChannel mock_channel=new JChannel() {};
        ProtocolStack stack=new ProtocolStack(mock_channel,props);
        stack.setup();
        stack.insertProtocol(harness, ProtocolStack.ABOVE, stack.getTopProtocol().getClass());
       
View Full Code Here

Examples of org.jgroups.stack.Configurator

            if(input == null)
                input=Thread.currentThread().getContextClassLoader().getResourceAsStream(input_file);

            if(old_format) {
                Configurator config=new Configurator();
                String cfg=inputAsString(input);
                Vector<ProtocolConfiguration> tmp=config.parseConfigurations(cfg);
                System.out.println(dump(tmp));

                //                conf=XmlConfigurator.getInstanceOldFormat(input);
                //                output=conf.getProtocolStackString(true);
                //                output=replace(output, "org.jgroups.protocols.", "");
View Full Code Here

Examples of org.jgroups.stack.Configurator

            if(input == null)
                input=Thread.currentThread().getContextClassLoader().getResourceAsStream(input_file);

            if(old_format) {
                Configurator config=new Configurator();
                String cfg=inputAsString(input);
                Vector tmp=config.parseConfigurations(cfg);
                System.out.println(dump(tmp));


//                conf=XmlConfigurator.getInstanceOldFormat(input);
//                output=conf.getProtocolStackString(true);
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.