Package org.rioproject.url.artifact

Examples of org.rioproject.url.artifact.ArtifactURLStreamHandlerFactory


                    /* If the artifact URL has not been configured, set it up */
                    try {
                        new URL("artifact:foo");
                    } catch (MalformedURLException e) {
                        URL.setURLStreamHandlerFactory(new ArtifactURLStreamHandlerFactory());
                    }

                    Main.redirect();
                    Installer.install();
                    return new Main(config, true, props);
View Full Code Here


* Tests the {@link org.rioproject.rmi.ResolvingLoader}
*/
public class ResolvingLoaderTest {
    @BeforeClass
    public static void setSecurityPolicy() {
        URL.setURLStreamHandlerFactory(new ArtifactURLStreamHandlerFactory());
        if (System.getSecurityManager() == null) {
            System.setSecurityManager(new SecurityManager());
        }
    }
View Full Code Here

import java.net.URLConnection;

public class HandlerTest {
    @BeforeClass
    public static void setupURLStreamHandlerFactory() {
        URL.setURLStreamHandlerFactory(new ArtifactURLStreamHandlerFactory());
    }
View Full Code Here

    public StaticCybernode()  {
        LogManagementHelper.setup();
        try {
            new URL("artifact:org.rioproject");
        } catch (MalformedURLException e) {
            URL.setURLStreamHandlerFactory(new ArtifactURLStreamHandlerFactory());
        }
        try {
            Configuration config = EmptyConfiguration.INSTANCE;
            instantiator = new ServiceBeanContainerImpl(config);
            ComputeResource cr = new ComputeResource();
View Full Code Here

    }

    @Test
    public void testEventCollector() throws Exception {
        try {
            URL.setURLStreamHandlerFactory(new ArtifactURLStreamHandlerFactory());
        } catch(Error e) {
            System.out.println("Factory already defined, move along");
        }
        EventCollector eventCollector = (EventCollector)testManager.waitForService(EventCollector.class);
        Assert.assertNotNull(eventCollector);
View Full Code Here

TOP

Related Classes of org.rioproject.url.artifact.ArtifactURLStreamHandlerFactory

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.