Examples of deployments()


Examples of org.apache.openejb.spi.ContainerSystem.deployments()

                        entry += c[i].getContainerID();
                        logger.debug("startup.debugEntry", entry);
                    }
                }

                logger.debug("startup.debugDeployments", containerSystem.deployments().length);
                if (containerSystem.deployments().length > 0) {
                    logger.debug("startup.debugDeploymentsType");
                    BeanContext[] d = containerSystem.deployments();
                    for (int i = 0; i < d.length; i++) {
                        String entry = "   ";
View Full Code Here

Examples of org.apache.openejb.spi.ContainerSystem.deployments()

                        logger.debug("startup.debugEntry", entry);
                    }
                }

                logger.debug("startup.debugDeployments", containerSystem.deployments().length);
                if (containerSystem.deployments().length > 0) {
                    logger.debug("startup.debugDeploymentsType");
                    BeanContext[] d = containerSystem.deployments();
                    for (int i = 0; i < d.length; i++) {
                        String entry = "   ";
                        switch (d[i].getComponentType()) {
View Full Code Here

Examples of org.apache.openejb.spi.ContainerSystem.deployments()

                }

                logger.debug("startup.debugDeployments", containerSystem.deployments().length);
                if (containerSystem.deployments().length > 0) {
                    logger.debug("startup.debugDeploymentsType");
                    BeanContext[] d = containerSystem.deployments();
                    for (int i = 0; i < d.length; i++) {
                        String entry = "   ";
                        switch (d[i].getComponentType()) {
                            case BMP_ENTITY:
                                entry += "BMP_ENTITY  ";
View Full Code Here

Examples of org.apache.openejb.spi.ContainerSystem.deployments()

     * @param name
     * @return .
     */
    private BeanContext findNameOwner(String name) {
        ContainerSystem containerSystem = SystemInstance.get().getComponent(ContainerSystem.class);
        for (BeanContext beanContext : containerSystem.deployments()) {
            Bindings bindings = beanContext.get(Bindings.class);
            if (bindings != null && bindings.getBindings().contains(name)) return beanContext;
        }
        return null;
    }
View Full Code Here

Examples of org.apache.openejb.spi.ContainerSystem.deployments()

                final BeanContext context = containerSystem.getBeanContext(clazz.getName());

                if (context != null) return context;
            }

            for (BeanContext context : containerSystem.deployments()) {

                if (clazz == context.getBeanClass()) return context;

            }
View Full Code Here

Examples of org.apache.openejb.spi.ContainerSystem.deployments()

                        entry += c[i].getContainerID();
                        logger.debug("startup.debugEntry", entry);
                    }
                }

                logger.debug("startup.debugDeployments", containerSystem.deployments().length);
                if (containerSystem.deployments().length > 0) {
                    logger.debug("startup.debugDeploymentsType");
                    BeanContext[] d = containerSystem.deployments();
                    for (int i = 0; i < d.length; i++) {
                        String entry = "   ";
View Full Code Here

Examples of org.apache.openejb.spi.ContainerSystem.deployments()

                        logger.debug("startup.debugEntry", entry);
                    }
                }

                logger.debug("startup.debugDeployments", containerSystem.deployments().length);
                if (containerSystem.deployments().length > 0) {
                    logger.debug("startup.debugDeploymentsType");
                    BeanContext[] d = containerSystem.deployments();
                    for (int i = 0; i < d.length; i++) {
                        String entry = "   ";
                        switch (d[i].getComponentType()) {
View Full Code Here

Examples of org.apache.openejb.spi.ContainerSystem.deployments()

                }

                logger.debug("startup.debugDeployments", containerSystem.deployments().length);
                if (containerSystem.deployments().length > 0) {
                    logger.debug("startup.debugDeploymentsType");
                    BeanContext[] d = containerSystem.deployments();
                    for (int i = 0; i < d.length; i++) {
                        String entry = "   ";
                        switch (d[i].getComponentType()) {
                            case BMP_ENTITY:
                                entry += "BMP_ENTITY  ";
View Full Code Here

Examples of org.apache.openejb.spi.ContainerSystem.deployments()

    public Gauge[] gauges() {
        final Collection<Gauge> gauges = new LinkedList<Gauge>();

        if (Configuration.is(Configuration.CONFIG_PROPERTY_PREFIX + "tomee.gauges.activated", true)) {
            final ContainerSystem containerSystem = SystemInstance.get().getComponent(ContainerSystem.class);
            for (final BeanContext beanContext : containerSystem.deployments()) {
                if (!beanContext.isHidden() && BeanType.STATELESS.equals(beanContext.getComponentType()) && beanContext.getContainerData() != null) {
                    final Object data = beanContext.getContainerData();
                    final Pool<?> pool = Pool.class.cast(Reflections.invokeByReflection(data, "getPool", NO_PARAM_TYPES, NO_PARAM));
                    final Object stats = Reflections.get(pool, "stats");
                    final String name = String.class.cast(beanContext.getDeploymentID());
View Full Code Here

Examples of org.apache.openejb.spi.ContainerSystem.deployments()

    private void printDeployments(PrintWriter out) throws IOException {
        SystemInstance system = SystemInstance.get();
        ContainerSystem containerSystem = system.getComponent(ContainerSystem.class);

        DeploymentInfo[] deployments = containerSystem.deployments();
        String[] deploymentString = new String[deployments.length];
        out.println("<table width=\"100%\" border=\"1\">");
        out.println("<tr bgcolor=\"#5A5CB8\">");
        out.println("<td><font color=\"white\">Deployment ID</font></td>");
        out.println("</tr>");
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.