Examples of Jsr77Naming


Examples of org.apache.geronimo.kernel.Jsr77Naming

        Collections.EMPTY_LIST,
        Collections.EMPTY_MAP,
        new Environment(new Artifact("groupId", "artifactId", "version", "type")),
        configDir,
        inPlaceConfig,
        new Jsr77Naming());
   
        inPlaceConfUtil.writeInPlaceLocation(configurationData, configDir);
   
    File actualInPlaceConfig = inPlaceConfUtil.readInPlaceLocation(configDir);
    assertEquals(inPlaceConfig, actualInPlaceConfig);
View Full Code Here

Examples of org.apache.geronimo.kernel.Jsr77Naming

                Collections.EMPTY_LIST,
                Collections.EMPTY_MAP,
                new Environment(new Artifact("groupId", "artifactId", "version", "type")),
                configDir,
                inPlaceConfig,
                new Jsr77Naming());
       
        inPlaceConfUtil.writeInPlaceLocation(configurationData, configDir);
        assertTrue(inPlaceConfUtil.isInPlaceConfiguration(configDir));
    }
View Full Code Here

Examples of org.apache.geronimo.kernel.Jsr77Naming

        // create parent which uses version1 explicitly
        Environment environment = new Environment();
        environment.setConfigId(loader);
        environment.addDependency(version1, ImportType.CLASSES);

        ConfigurationData parentConfigurationData = new ConfigurationData(environment, new Jsr77Naming());
        parentConfigurationData.setConfigurationStore(new MockConfigStore(new File("foo").toURL()));

        ConfigurationResolver configurationResolver = new ConfigurationResolver(parentConfigurationData,
                Collections.singleton(mockRepository),
                artifactResolver);
View Full Code Here

Examples of org.apache.geronimo.kernel.Jsr77Naming

        public MockConfigStore(URL baseURL) {
            this.baseURL = baseURL;
        }

        public ConfigurationData loadConfiguration(Artifact configId) throws NoSuchConfigException, IOException, InvalidConfigException {
            ConfigurationData configurationData = new ConfigurationData(configId, new Jsr77Naming());
            configurationData.setConfigurationStore(this);
            return configurationData;
        }
View Full Code Here

Examples of org.apache.geronimo.kernel.Jsr77Naming

        System.out.println();
    }


    public ClientCommandLine(Artifact configuration, String[] args) throws Exception {
        Jsr77Naming naming = new Jsr77Naming();
        //this kinda sucks, but resource adapter modules deployed on the client insist on having a
        //J2EEApplication name component
        AbstractName baseName = naming.createRootName(configuration, configuration.toString(), "J2EEApplication");
        AbstractNameQuery baseNameQuery = new AbstractNameQuery(baseName);
        invokeMainGBean(Collections.singletonList(configuration), baseNameQuery, "main", args);
    }
View Full Code Here

Examples of org.apache.geronimo.kernel.Jsr77Naming

                                            "                </tss:compoundSecMechTypeList>\n" +
                                            "            </tss:tss>";

    public void testCORBABean() throws Exception {
        ClassLoader classLoader = getClass().getClassLoader();
        Naming naming = new Jsr77Naming();
        AbstractName testName = naming.createRootName(new Artifact("test", "stuff", "", "ear"), "gbean", NameFactory.CORBA_SERVICE) ;
        ConfigAdapter configAdapter = new org.apache.geronimo.yoko.ORBConfigAdapter();
        CORBABean corbaBean = new CORBABean(testName, configAdapter, "localhost", 8050, classLoader, null, null, null);
        XmlObject xmlObject = getXmlObject(TEST_XML4);
        TSSConfigEditor editor = new TSSConfigEditor();
        Object o = editor.getValue(xmlObject, null, classLoader);
View Full Code Here

Examples of org.apache.geronimo.kernel.Jsr77Naming

    private ConfigurationData configurationData;

    @Override
    protected void setUp() throws Exception {
        configId = new Artifact("groupId", "artifactId", "2.0", "car");
        configurationData = new ConfigurationData(new Environment(configId), new Jsr77Naming());
        File configurationDir = new File("configurationDir");
        configurationData.setConfigurationDir(configurationDir);

        clusterInfo = (ClusterInfo) mock(ClusterInfo.class);
View Full Code Here

Examples of org.apache.geronimo.kernel.Jsr77Naming

    }

    private void doTest(String text) throws XmlException, DeploymentException {
        GeronimoSecurityBuilderImpl secBuilder = new GeronimoSecurityBuilderImpl(null);
        secBuilder.doStart();
        LoginConfigBuilder builder = new LoginConfigBuilder(new Jsr77Naming(), null);
        XmlObject xmlObject = XmlBeansUtil.parse(text);
        XmlCursor cursor = xmlObject.newCursor();
        cursor.toFirstContentToken();
        xmlObject = cursor.getObject();
        DeploymentContext context = new DeploymentContext(new File("."), null, new Environment(Artifact.create("test/foo/1.0/car")), null, ConfigurationModuleType.SERVICE, new Jsr77Naming(), new MockConfigurationManager(), Collections.emptySet());
        AbstractName parentName = new AbstractName(URI.create("test/foo/1.0/car?name=parent,j2eeType=foo"));
        builder.getReferences(xmlObject, context, parentName, getClass().getClassLoader());
        secBuilder.doStop();
    }
View Full Code Here

Examples of org.apache.geronimo.kernel.Jsr77Naming

        ModuleType config = ModuleDocument.Factory.parse(plan).getModule();

        Maven2Repository repository = new Maven2Repository(localRepo);
        GBeanBuilder gBeanBuilder = new GBeanBuilder(null, null);
        ServiceConfigBuilder builder = new ServiceConfigBuilder(null, Collections.singleton(repository), Collections.singleton(gBeanBuilder), new Jsr77Naming());
        ConfigurationStore targetConfigurationStore = new NullConfigurationStore() {
            public File createNewConfigurationDir(Artifact configId) throws ConfigurationAlreadyExistsException {
                return buildDir;
            }
        };
View Full Code Here

Examples of org.apache.geronimo.kernel.Jsr77Naming

    public void testNonService() throws Exception {
        URL url = getClass().getResource("/empty.jar");
        File file = new File(url.getPath());
        JarFile jar = new JarFile(file);
        assertTrue(file.exists());
        ServiceConfigBuilder builder = new ServiceConfigBuilder(parentEnvironment, null, new Jsr77Naming());
        assertNull(builder.getDeploymentPlan(null, jar, new ModuleIDBuilder()));
        jar.close();
    }
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.