Package org.apache.aries.blueprint.container

Examples of org.apache.aries.blueprint.container.BlueprintContainerImpl


    }

    public void setParentContainer(BlueprintContainer parentContainer) {
        this.parentContainer = parentContainer;
        if (parentContainer instanceof BlueprintContainerImpl) {
            BlueprintContainerImpl impl = (BlueprintContainerImpl)parentContainer;

            // TODO we could auto-default the ClassLoader and Properties here if
            // https://issues.apache.org/jira/browse/ARIES-1092 were fixed
/*
            TODO
View Full Code Here


            LOG.info("Ignoring XML file " + path + " which is not a blueprint XML");
            return null;
        }
        LOG.info("Creating container at " + url);
        List<URL> locations = Arrays.asList(url);
        return new BlueprintContainerImpl(classLoader, locations, properties, true);
    }
View Full Code Here

        return new BlueprintContainerImpl(classLoader, locations, properties, true);
    }

    protected void closeContainer(URL url, BlueprintContainer container) {
        if (container instanceof BlueprintContainerImpl) {
            BlueprintContainerImpl impl = (BlueprintContainerImpl)container;
            try {
                LOG.info("Closing container at path " + url + " container " + container);
                impl.destroy();
            } catch (Exception e) {
                LOG.info("Failed to close at " + url + " container " + container + ". " + e, e);
            }
        }
    }
View Full Code Here

                }
            }
            appendEnvironmentVariables(servletContext, properties);


            BlueprintContainerImpl container = new BlueprintContainerImpl(classLoader, resourcePaths, properties, true);
            servletContext.setAttribute(CONTAINER_ATTRIBUTE, container);
        } catch (Exception e) {
            servletContext.log("Failed to startup blueprint container. " + e, e);
        }
    }
View Full Code Here

    public void contextDestroyed(ServletContextEvent event) {
        ServletContext servletContext = event.getServletContext();
        Object container = servletContext.getAttribute(CONTAINER_ATTRIBUTE);
        if (container instanceof BlueprintContainerImpl) {
            BlueprintContainerImpl blueprint = (BlueprintContainerImpl) container;
            blueprint.destroy();
        }
    }
View Full Code Here

        Map<String, String> properties = new HashMap<String, String>();
        String configDir = getBaseDir() + "/src/test/config";
        properties.put("hawtio.config.dir", configDir);
        LOG.info("Using properties: " + properties);

        blueprintContainer = new BlueprintContainerImpl(classLoader, resourcePaths, properties, true);
        // No need to call init - it results in: org.apache.aries.blueprint.ComponentNameAlreadyInUseException: Name 'blueprintContainer' is already in use by a registered component
        //blueprintContainer.init();
    }
View Full Code Here

                  }
              }
              LOG.info("Loading Blueprint contexts " + resourcePaths);

              Map<String, String> properties = new HashMap<String, String>();
              BlueprintContainerImpl container = new BlueprintContainerImpl(classLoader, resourcePaths, properties, true);


              if (args.length == 0 || !args[0].equals("nospring")) {
                  // now lets startup a spring application context
                  LOG.info("starting spring application context");
View Full Code Here

TOP

Related Classes of org.apache.aries.blueprint.container.BlueprintContainerImpl

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.