Examples of AbstractNameQuery


Examples of org.apache.geronimo.gbean.AbstractNameQuery

            this.kernel = kernel;
        }

        public void run() {
            while (true) {
                Set configs = kernel.listGBeans(new AbstractNameQuery(Configuration.class.getName()));
                if (configs.isEmpty()) {
                    return;
                }
                for (Iterator i = configs.iterator(); i.hasNext();) {
                    AbstractName configName = (AbstractName) i.next();
View Full Code Here

Examples of org.apache.geronimo.gbean.AbstractNameQuery

        storeB.getAbstractName();
        nameB = new AbstractName(artifact, Collections.singletonMap("name", "B"));
        modify().multiplicity(expect.from(0)).returnValue(nameB);

        manager = new EditableKernelConfigurationManager(kernel,
            new AbstractNameQuery(artifact, Collections.singletonMap("name", "B")),
            stores,
            attributeStore,
            configurationList,
            artifactManager,
            artifactResolver,
View Full Code Here

Examples of org.apache.geronimo.gbean.AbstractNameQuery

                    gbean.setAttribute(EjbInterface.SERVICE_ENDPOINT.getAttributeName(), statelessBean.getServiceEndpoint());
                }
            }

            // set reference patterns
            gbean.setReferencePattern("TrackedConnectionAssociator", new AbstractNameQuery(null, Collections.EMPTY_MAP, TrackedConnectionAssociator.class.getName()));
            gbean.setReferencePattern("OpenEjbSystem", new AbstractNameQuery(null, Collections.EMPTY_MAP, OpenEjbSystem.class.getName()));

            try {
                earContext.addGBean(gbean);
            } catch (GBeanAlreadyExistsException e) {
                throw new DeploymentException("Could not add entity bean to context", e);
View Full Code Here

Examples of org.apache.geronimo.gbean.AbstractNameQuery

        configurationManager.loadConfiguration(configurationData);
        Configuration configuration = configurationManager.getConfiguration(configurationId);
        configurationManager.startConfiguration(configurationId);

        assertEquals(State.RUNNING_INDEX, kernel.getGBeanState(moduleName));
        Set names = configuration.findGBeans(new AbstractNameQuery(moduleName.getArtifact(), Collections.EMPTY_MAP));
        log.debug("names: " + names);
        for (Iterator iterator = names.iterator(); iterator.hasNext();) {
            AbstractName objectName = (AbstractName) iterator.next();
            assertEquals(State.RUNNING_INDEX, kernel.getGBeanState(objectName));
        }
View Full Code Here

Examples of org.apache.geronimo.gbean.AbstractNameQuery

                environment,
                ConfigurationModuleType.WAR,
                naming,
                configurationManager,
                repositories,
                new AbstractNameQuery(serverName),
                moduleName,
                new AbstractNameQuery(tmName),
                new AbstractNameQuery(ctcName),
                null,
                null,
                null
        );
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.AbstractNameQuery

        defaultEnvironment.setConfigId(webModuleArtifact);
        Collection<ModuleBuilderExtension> moduleBuilderExtensions = new ArrayList<ModuleBuilderExtension>();
        builder = new JettyModuleBuilder(defaultEnvironment,
                new Integer(1800),
                Collections.EMPTY_LIST,
                new AbstractNameQuery(containerName),
                //new AbstractNameQuery(containerName),
                null, defaultServlets,
                defaultFilters,
                defaultFilterMappings,
                null,
View Full Code Here

Examples of org.apache.geronimo.gbean.AbstractNameQuery

    }

    private void verifyStartable(String warName) throws Exception {
        WebModuleInfo info = deployWar(warName);
        assertEquals(State.RUNNING_INDEX, kernel.getGBeanState(info.moduleName));
        Set names = info.configuration.findGBeans(new AbstractNameQuery(info.moduleName.getArtifact(), Collections.EMPTY_MAP));
        log.debug("names: " + names);
        for (Iterator iterator = names.iterator(); iterator.hasNext();) {
            AbstractName objectName = (AbstractName) iterator.next();
            assertEquals(State.RUNNING_INDEX, kernel.getGBeanState(objectName));
        }
View Full Code Here

Examples of org.apache.geronimo.gbean.AbstractNameQuery

                environment,
                ConfigurationModuleType.WAR,
                naming,
                configurationManager,
                repositories,
                new AbstractNameQuery(serverName),
                moduleName,
                new AbstractNameQuery(tmName),
                new AbstractNameQuery(ctcName),
                null,
                null,
                null
        );
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.AbstractNameQuery

        configStore.install(bootstrap);

        defaultEnvironment.addDependency(baseId, ImportType.ALL);
        defaultEnvironment.setConfigId(webModuleArtifact);
        builder = new TomcatModuleBuilder(defaultEnvironment,
            new AbstractNameQuery(containerName),
            Collections.singleton(webServiceBuilder),
            Collections.singleton(new GeronimoSecurityBuilderImpl(new AbstractNameQuery(URI
                    .create("?name=CredentialStore")))),
            Collections.singleton(new GBeanBuilder(null, null)),
            new NamingBuilderCollection(null, null),
            Collections.EMPTY_LIST,
            null,
View Full Code Here

Examples of org.apache.geronimo.gbean.AbstractNameQuery

        }
    }

    protected GBeanData extractWebModule(DeploymentContext moduleContext) throws DeploymentException {
        Configuration configuration = moduleContext.getConfiguration();
        AbstractNameQuery webModuleQuery = new AbstractNameQuery(configuration.getId(),
            Collections.EMPTY_MAP,
            Collections.singleton(TomcatWebAppContext.class.getName()));
        try {
            return configuration.findGBeanData(webModuleQuery);
        } catch (GBeanNotFoundException e) {
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.