Examples of createConfiguration()


Examples of org.jboss.arquillian.drone.spi.Configurator.createConfiguration()

        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.jboss.as.ee.component.ComponentDescription.createConfiguration()

                final ComponentDescription componentDescription = iterator.next();
                ROOT_LOGGER.debugf("Configuring component class: %s named %s", componentDescription.getComponentClassName(),
                        componentDescription.getComponentName());
                final ComponentConfiguration componentConfiguration;
                try {
                    componentConfiguration = componentDescription.createConfiguration(classIndex.classIndex(componentDescription.getComponentClassName()), module.getClassLoader(), module.getModuleLoader());
                    for (final ComponentConfigurator componentConfigurator : componentDescription.getConfigurators()) {
                        componentConfigurator.configure(phaseContext, componentDescription, componentConfiguration);
                    }
                    moduleConfiguration.addComponentConfiguration(componentConfiguration);
                } catch (Exception e) {
View Full Code Here

Examples of org.jboss.ws.metadata.wsse.WSSecurityConfigFactory.createConfiguration()

            // Build type mapping meta data
            setupTypesMetaData(serviceMetaData);

            // Assign the WS-Security configuration,
            WSSecurityConfigFactory wsseConfFactory = WSSecurityConfigFactory.newInstance();
            WSSecurityConfiguration securityConfiguration = wsseConfFactory.createConfiguration(wsMetaData.getRootFile(), WSSecurityOMFactory.SERVER_RESOURCE_NAME);
            serviceMetaData.setSecurityConfiguration(securityConfiguration);

            // For every port-component build the EndpointMetaData
            PortComponentMetaData[] pcMetaDataArr = wsdMetaData.getPortComponents();
            for (PortComponentMetaData pcMetaData : pcMetaDataArr)
View Full Code Here

Examples of org.ops4j.pax.exam.ConfigurationFactory.createConfiguration()

            LOG.debug("creating WAR probe");
            if (configurationFactory == null) {
                return new WarTestProbeBuilderImpl(getTempFolder());
            }
            else {
                Option[] configuration = configurationFactory.createConfiguration();
                Option[] tempOptions = combine(combinedOptions, configuration);
                warProbeOption = getSingleOption(WarProbeOption.class, tempOptions);
                return new WarTestProbeBuilderImpl(getTempFolder(), warProbeOption);
            }
        }
View Full Code Here

Examples of org.rhq.core.domain.configuration.definition.ConfigurationTemplate.createConfiguration()

  protected static Configuration getDefaultPluginConfiguration(
      ResourceType resourceType) {
    ConfigurationTemplate pluginConfigDefaultTemplate = resourceType
        .getPluginConfigurationDefinition().getDefaultTemplate();
    return (pluginConfigDefaultTemplate != null) ? pluginConfigDefaultTemplate
        .createConfiguration()
        : new Configuration();
  }

  /*
 
View Full Code Here

Examples of org.rhq.core.domain.configuration.definition.ConfigurationTemplate.createConfiguration()

  private static Configuration getDefaultPluginConfiguration(
      ResourceType resourceType) {
    ConfigurationTemplate pluginConfigDefaultTemplate = resourceType
        .getPluginConfigurationDefinition().getDefaultTemplate();
    return (pluginConfigDefaultTemplate != null) ? pluginConfigDefaultTemplate
        .createConfiguration()
        : new Configuration();
  }

  /**
 
View Full Code Here

Examples of org.rhq.core.domain.configuration.definition.ConfigurationTemplate.createConfiguration()

            ConfigurationDefinition pluginConfigDefinition = LookupUtil.getConfigurationManager()
                .getPluginConfigurationDefinitionForResourceType(getSessionSubject(), newResourceTypeId);
            Configuration pluginConfig = null;
            if (pluginConfigDefinition != null) {
                ConfigurationTemplate pluginConfigTemplate = pluginConfigDefinition.getDefaultTemplate();
                pluginConfig = (pluginConfigTemplate != null) ? pluginConfigTemplate.createConfiguration()
                    : new Configuration();

                // TODO GH: Is this still necessary now that we don't blow up on non-normalized configs
                // ConfigurationUtility.normalizeConfiguration(pluginConfig, pluginConfigDefinition);
            }
View Full Code Here

Examples of org.rhq.core.domain.drift.DriftDefinitionTemplate.createConfiguration()

    private void setSelectedTemplate(String key, final HashMap<String, DriftDefinitionTemplate> templatesMap) {

        DriftDefinitionTemplate selectedTemplate = templatesMap.get(key);
        wizard.setSelectedTemplate(selectedTemplate);
        Configuration startingConfig = selectedTemplate.createConfiguration();
        // don't propogate the template name or desc to the def, force the user to enter a name, and optionally, a def
        startingConfig.remove(DriftConfigurationDefinition.PROP_NAME);
        startingConfig.remove(DriftConfigurationDefinition.PROP_DESCRIPTION);
        wizard.setNewStartingConfiguration(startingConfig);
        String description = selectedTemplate.getDescription();
View Full Code Here

Examples of org.springframework.ui.freemarker.FreeMarkerConfigurationFactory.createConfiguration()

    gnizrConfiguration.setSiteContactEmail("admin@mysite.com");
    gnizrConfiguration.setWebApplicationUrl("http://foo.com/gnizr");
   
    FreeMarkerConfigurationFactory factory = new FreeMarkerConfigurationFactory();
    factory.setTemplateLoaderPath("/templates");
    freemarkerEngine = factory.createConfiguration();
   
    userManager = new UserManager(getGnizrDao());
    tokenManager = new TokenManager();
    tokenManager.setUserManager(userManager);
    tokenManager.init();
View Full Code Here

Examples of org.springframework.ui.freemarker.FreeMarkerConfigurationFactory.createConfiguration()

    gnizrConfiguration.setSiteContactEmail("admin@mysite.com");
    gnizrConfiguration.setWebApplicationUrl("http://foo.com/gnizr");

    FreeMarkerConfigurationFactory factory = new FreeMarkerConfigurationFactory();
    factory.setTemplateLoaderPath("/templates");
    freemarkerEngine = factory.createConfiguration();
   
    userManager = new UserManager(getGnizrDao());
    tokenManager = new TokenManager();
    tokenManager.setUserManager(userManager);
    tokenManager.init();
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.