Package org.rhq.plugins.perftest.configuration

Examples of org.rhq.plugins.perftest.configuration.ConfigurationFactory


     *
     * @return configuration factory instance used to generate the plugin configurations; this may be <code>null</code>
     *         if the resource does not define a generator for its plugin configuration
     */
    public ConfigurationFactory getPluginConfigurationFactory(String resourceTypeName) {
        ConfigurationFactory configurationFactory = pluginConfigurationFactories.get(resourceTypeName);

        // Lazy load the factory
        if (configurationFactory == null) {
            Resource resource = findResource(resourceTypeName);
            if (resource != null) {
View Full Code Here


                return Collections.emptySet();
           
            resourceDetails = resourceFactory.discoverResources(context);

            // If there is a plugin configuration factory defined, run it on each resource
            ConfigurationFactory configurationFactory = manager.getPluginConfigurationFactory(resourceType.getName());
            if (configurationFactory != null) {
                for (DiscoveredResourceDetails details : resourceDetails) {
                    Configuration configuration = configurationFactory.generateConfiguration(resourceType
                        .getPluginConfigurationDefinition());
                    details.setPluginConfiguration(configuration);
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.rhq.plugins.perftest.configuration.ConfigurationFactory

Copyright © 2018 www.massapicom. 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.