Package org.jboss.gravia.runtime.spi

Examples of org.jboss.gravia.runtime.spi.URLStreamHandlerTracker$URLStreamHandlerProxy


        // Create the bundle resolve/uninstall listener
        installListener = createBundleInstallListener();
    }

    private URLStreamHandlerTracker createURLStreamHandlerTracker(ModuleContext moduleContext) {
        URLStreamHandlerTracker tracker = new URLStreamHandlerTracker(moduleContext) {

            private Map<ServiceReference<?>, ServiceRegistration<?>> registrations = new HashMap<>();

            @Override
            protected void addingHandler(String protocol, ServiceReference<URLStreamHandler> sref, final URLStreamHandler handler) {
View Full Code Here


        // Create the bundle resolve/uninstall listener
        installListener = createBundleInstallListener();
    }

    private URLStreamHandlerTracker createURLStreamHandlerTracker(ModuleContext moduleContext) {
        URLStreamHandlerTracker tracker = new URLStreamHandlerTracker(moduleContext) {

            private Map<ServiceReference<?>, ServiceRegistration<?>> registrations = new HashMap<>();

            @Override
            protected void addingHandler(String protocol, ServiceReference<URLStreamHandler> sref, final URLStreamHandler handler) {
View Full Code Here

        // META-INF/service discovery happens on every call to the factory
        // we need to delegate to the single instance
        synchronized (WildFlyURLStreamHandlerFactory.class) {
            if (tracker == null) {
                Runtime runtime = RuntimeLocator.getRequiredRuntime();
                tracker = new URLStreamHandlerTracker(runtime.getModuleContext());
                tracker.open();
            }
        }
    }
View Full Code Here

        // Create the bundle resolve/uninstall listener
        installListener = createBundleInstallListener();
    }

    private URLStreamHandlerTracker createURLStreamHandlerTracker(ModuleContext moduleContext) {
        URLStreamHandlerTracker tracker = new URLStreamHandlerTracker(moduleContext) {

            private Map<ServiceReference<?>, ServiceRegistration<?>> registrations = new HashMap<>();

            @Override
            protected void addingHandler(String protocol, ServiceReference<URLStreamHandler> sref, final URLStreamHandler handler) {
View Full Code Here

    public TomcatRuntime(PropertiesProvider propertiesProvider, Attachable context) {
        super(propertiesProvider, context);

        // Register the URLStreamHandler tracker
        URLStreamHandlerTracker tracker = new URLStreamHandlerTracker(getModuleContext());
        DirContextURLStreamHandlerFactory.addUserFactory(tracker);
        tracker.open();
    }
View Full Code Here

        // Create the bundle resolve/uninstall listener
        installListener = createBundleInstallListener();
    }

    private URLStreamHandlerTracker createURLStreamHandlerTracker(ModuleContext moduleContext) {
        URLStreamHandlerTracker tracker = new URLStreamHandlerTracker(moduleContext) {

            private Map<ServiceReference<?>, ServiceRegistration<?>> registrations = new HashMap<>();

            @Override
            protected void addingHandler(String protocol, ServiceReference<URLStreamHandler> sref, final URLStreamHandler handler) {
View Full Code Here

        // Create the bundle resolve/uninstall listener
        installListener = createBundleInstallListener();
    }

    private URLStreamHandlerTracker createURLStreamHandlerTracker(ModuleContext moduleContext) {
        URLStreamHandlerTracker tracker = new URLStreamHandlerTracker(moduleContext) {

            private Map<ServiceReference<?>, ServiceRegistration<?>> registrations = new HashMap<>();

            @Override
            protected void addingHandler(String protocol, ServiceReference<URLStreamHandler> sref, final URLStreamHandler handler) {
View Full Code Here

    public TomcatRuntime(PropertiesProvider propertiesProvider, Attachable context) {
        super(propertiesProvider, context);

        // Register the URLStreamHandler tracker
        URLStreamHandlerTracker tracker = new URLStreamHandlerTracker(getModuleContext());
        DirContextURLStreamHandlerFactory.addUserFactory(tracker);
        tracker.open();

        try {
            userDatabase = new MemoryUserDatabase();
            userDatabase.open();
        } catch (Exception ex) {
View Full Code Here

                    public Runtime createRuntime(PropertiesProvider propertiesProvider) {
                        return new EmbeddedRuntime(propertiesProvider, null) {

                            @Override
                            public void init() {
                                URLStreamHandlerTracker tracker = new URLStreamHandlerTracker(getModuleContext());
                                URLStreamHandlerFactoryProxy.setDelegate(tracker);
                                URLStreamHandlerFactoryProxy.register();
                                super.init();
                            }
View Full Code Here

    public TomcatRuntime(PropertiesProvider propertiesProvider, Attachable context) {
        super(propertiesProvider, context);

        // Register the URLStreamHandler tracker
        URLStreamHandlerTracker tracker = new URLStreamHandlerTracker(getModuleContext());
        DirContextURLStreamHandlerFactory.addUserFactory(tracker);
        tracker.open();

        try {
            userDatabase = new MemoryUserDatabase();
            userDatabase.open();
        } catch (Exception ex) {
View Full Code Here

TOP

Related Classes of org.jboss.gravia.runtime.spi.URLStreamHandlerTracker$URLStreamHandlerProxy

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.