Examples of InstanceManager


Examples of org.apache.tomcat.InstanceManager

    }

    public void destroy() {
        if (theServlet != null) {
            theServlet.destroy();
            InstanceManager instanceManager = InstanceManagerFactory.getInstanceManager(config);
            try {
                instanceManager.destroyInstance(theServlet);
            } catch (Exception e) {
                // Log any exception, since it can't be passed along
                JasperLogger.SERVLET_LOGGER.errorDestroyingServletInstance(e);
            }
        }
View Full Code Here

Examples of org.apache.tomcat.InstanceManager

    private InstanceManagerFactory() {
    }

    public static InstanceManager getInstanceManager(ServletConfig config) {
        InstanceManager instanceManager =
          (InstanceManager) config.getServletContext().getAttribute(InstanceManager.class.getName());
        if (instanceManager == null) {
            throw MESSAGES.noInstanceManager();
        }
        return instanceManager;
View Full Code Here

Examples of org.apache.tomcat.InstanceManager

                    destroy();
                   
                    final Servlet servlet;

                    try {
                        InstanceManager instanceManager = InstanceManagerFactory.getInstanceManager(config);
                        servlet = (Servlet) instanceManager.newInstance(ctxt.getFQCN(), ctxt.getJspLoader());
                    } catch (IllegalAccessException e) {
                        throw new JasperException(e);
                    } catch (InstantiationException e) {
                        throw new JasperException(e);
                    } catch (Exception e) {
View Full Code Here

Examples of org.jostraca.util.InstanceManager


  // test methods

  public void testGet() throws Exception {
    InstanceManager im = new InstanceManager();

    String im_cn = "org.jostraca.util.InstanceManager";
    String ps_cn = "org.jostraca.util.PropertySet";

    Object im_o = im.getInstance( im_cn );
    assertTrue( im_o instanceof InstanceManager );

    Object ps_o = im.getInstance( ps_cn );
    assertTrue( ps_o instanceof PropertySet );

    Object im_o2 = im.getInstance( im_cn );
    assertEquals( im_o, im_o2 );

    Object ps_o2 = im.getInstance( ps_cn );
    assertEquals( ps_o, ps_o2 );
  }
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.