Examples of ConfigurationStore


Examples of org.apache.geronimo.kernel.config.ConfigurationStore

                instance.getDependency().add(dependency.toDependencyType());
            }
        } else {
            if (targetRepository.exists() && targetRepository.isDirectory()) {
                Maven2Repository targetRepo = new Maven2Repository(targetRepository);
                ConfigurationStore configStore = new RepositoryConfigurationStore(targetRepo);
                Artifact pluginArtifact = PluginInstallerGBean.toArtifact(instance.getModuleId());
                ConfigurationData data = configStore.loadConfiguration(pluginArtifact);
                PluginInstallerGBean.addGeronimoDependencies(data, instance.getDependency(), useMavenDependencies.isIncludeVersion());
            } else {
                List<org.apache.maven.model.Dependency> includedDependencies = project.getOriginalModel().getDependencies();
                List<org.apache.maven.model.Dependency> artifacts = project.getDependencies();
                for (org.apache.maven.model.Dependency dependency : includedDependencies) {
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationStore

                        (moduleFile == null ? "" : (planFile == null ? "" : ", ") + "moduleFile=" + moduleFile.getAbsolutePath()) + ")");
            }

            Artifact configID = getConfigID(module, idBuilder, plan, builder);

            ConfigurationStore store = getConfigurationStore(targetConfigurationStore);

            // It's our responsibility to close this context, once we're done with it...
            context = builder.buildConfiguration(inPlace, configID, plan, module, stores, artifactResolver, store);

            // Copy the external plan to the META-INF folder with the uniform name plan.xml if there is nothing there already
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationStore

        Maven2Repository repository = new Maven2Repository(localRepo);
        new DependencyManager(bundleContext, Collections.<Repository>singleton(repository), null);

        GBeanBuilder gBeanBuilder = new GBeanBuilder(null, null);
        ServiceConfigBuilder builder = new ServiceConfigBuilder(null, Collections.<Repository>singleton(repository), Collections.<NamespaceDrivenBuilder>singleton(gBeanBuilder), new Jsr77Naming(), bundleContext);
        ConfigurationStore targetConfigurationStore = new NullConfigurationStore() {
            public File createNewConfigurationDir(Artifact configId) throws ConfigurationAlreadyExistsException {
                StringBuilder configurationPathBuilder = new StringBuilder("repository");
                configurationPathBuilder.append(File.separator).append(configId.getGroupId().replace('.', '/'));
                configurationPathBuilder.append(File.separator).append(configId.getArtifactId());
                configurationPathBuilder.append(File.separator).append(configId.getVersion());
View Full Code Here

Examples of org.apache.ivory.entity.store.ConfigurationStore

                listeners.replace("org.apache.ivory.service.SharedLibraryHostingService", ""));
        ConfigurationStore.get().init();
    }
   
    protected void cleanupStore() throws IvoryException {
        ConfigurationStore store = ConfigurationStore.get();
        for(EntityType type:EntityType.values()) {
            Collection<String> entities = store.getEntities(type);
            for(String entity:entities)
                store.remove(type, entity);
        }
    }
View Full Code Here

Examples of org.constretto.ConfigurationStore

*/
public abstract class AbstractConfigurationStoreTest {

    @Test
    public void load() {
        ConfigurationStore store = getStore();
        Collection<TaggedPropertySet> props = store.parseConfiguration();
        assertNotNull(props);
        assertEquals("Unexpected number of tags loaded for " + store, 3, props.size());
        for (TaggedPropertySet prop : props) {
            String value = prop.getProperties().get("somedb.username");
            if (prop.tag().equals(ConfigurationValue.DEFAULT_TAG)) {
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.ConfigurationStore

    * property com.sun.xcaml.PDPConfigFile.
    */
   public SimplePDP() throws Exception
   {
      // load the configuration
      ConfigurationStore store = new ConfigurationStore();

      // use the default factories from the configuration
      store.useDefaultFactories();

      // get the PDP configuration's and setup the PDP
      pdp = new PDP(store.getDefaultPDPConfig());
   }
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.