protected void initInternal() { StandardContext standardContext = (StandardContext) context; standardContext.addLifecycleListener(this); }
protected void initInternal() { StandardContext standardContext = (StandardContext) context; standardContext.addLifecycleListener(this); }
protected void initInternal() { StandardContext standardContext = (StandardContext) context; standardContext.addLifecycleListener(this); }
protected void initInternal() { StandardContext standardContext = (StandardContext) context; standardContext.addLifecycleListener(this); }
@Override public void start() throws LifecycleException { StandardContext standardContext = (StandardContext) context; standardContext.addLifecycleListener(this); super.start(); }
@Override public void start() throws LifecycleException { super.start(); StandardContext standardContext = (StandardContext) context; standardContext.addLifecycleListener(this); }
@Override public void start() throws LifecycleException { StandardContext standardContext = (StandardContext) context; standardContext.addLifecycleListener(this); super.start(); }
@Override public void start() throws LifecycleException { super.start(); StandardContext standardContext = (StandardContext) context; standardContext.addLifecycleListener(this); }
@Override public void start() throws LifecycleException { StandardContext standardContext = (StandardContext) context; standardContext.addLifecycleListener(this); super.start(); }
@Override public void start() throws LifecycleException { super.start(); StandardContext standardContext = (StandardContext)context; standardContext.addLifecycleListener(this); }
private void registerContext(StandardContext context) { if (!monitoredContexts.contains(context.getName())) { context.addLifecycleListener(this); // if (LifecycleState.STARTED.equals(context.getState())) { start(context); } // monitoredContexts.add(context.getName()); } }
private Context createDefaultContext(String contextPath, String docBase) { StandardContext context = new StandardContext(); context.setDocBase(docBase); context.setPath(contextPath); ContextConfig config = new ContextConfig(); context.addLifecycleListener(config); return context; }
private Context createDefaultContext(String contextPath, String docBase) { StandardContext context = new StandardContext(); context.setDocBase(docBase); context.setPath(contextPath); ContextConfig config = new ContextConfig(); context.addLifecycleListener(config); return context; }
private StandardContext createContext(String path, String docBase) { StandardContext context = new StandardContext(); context.setUnpackWAR(false); context.setDocBase(docBase); context.setPath(path); ContextConfig config = new ContextConfig(); context.addLifecycleListener(config); return (context); } }
@Override protected void initInternal() throws LifecycleException { super.initInternal(); if (processTlds) { this.addLifecycleListener(new TldConfig()); } // Register the naming resources if (namingResources != null) { namingResources.init(); } // Send j2ee.object.created notification if (this.getObjectName() != null) { Notification notification = new Notification("j2ee.object.created", this.getObjectName(), sequenceNumber.getAndIncrement()); broadcaster.sendNotification(notification); } }
@Override protected void initInternal() throws LifecycleException { super.initInternal(); if (processTlds) { this.addLifecycleListener(new TldConfig()); } // Register the naming resources if (namingResources != null) { namingResources.init(); } // Send j2ee.object.created notification if (this.getObjectName() != null) { Notification notification = new Notification("j2ee.object.created", this.getObjectName(), sequenceNumber.getAndIncrement()); broadcaster.sendNotification(notification); } }
@Override protected void initInternal() throws LifecycleException { super.initInternal(); if (processTlds) { this.addLifecycleListener(new TldConfig()); } // Register the naming resources if (namingResources != null) { onameNamingResources = register(namingResources, "type=NamingResources," + getObjectNameKeyProperties()); } // Send j2ee.object.created notification if (this.getObjectName() != null) { Notification notification = new Notification("j2ee.object.created", this.getObjectName(), sequenceNumber.getAndIncrement()); broadcaster.sendNotification(notification); } }
@Override protected void initInternal() throws LifecycleException { super.initInternal(); if (processTlds) { this.addLifecycleListener(new TldConfig()); } // Register the naming resources if (namingResources != null) { onameNamingResources = register(namingResources, "type=NamingResources," + getObjectNameKeyProperties()); } // Send j2ee.object.created notification if (this.getObjectName() != null) { Notification notification = new Notification("j2ee.object.created", this.getObjectName(), sequenceNumber.getAndIncrement()); broadcaster.sendNotification(notification); } }
private StandardContext createContext(String path, String docBase, ClassLoader classLoader, Map<String, List<Injector<?>>> injectors) { StandardContext context = new StandardContext(); context.setDocBase(docBase); context.setPath(path); ContextConfig config = new ContextConfig(); context.addLifecycleListener(config); context.setParentClassLoader(classLoader); Fabric3Loader loader = new Fabric3Loader(classLoader); context.setLoader(loader); // turn off unpacking so Tomcat does not copy the extracted WAR to the /webapps directory and autodeploy it on a subsequent boot context.setUnpackWAR(false); Fabric3AnnotationProcessor annotationProcessor = new Fabric3AnnotationProcessor(injectors); context.setAnnotationProcessor(annotationProcessor); context.getServletContext().setAttribute(AnnotationProcessor.class.getName(), annotationProcessor); return (context); }
@Override protected void initInternal() throws LifecycleException { super.initInternal(); if (processTlds) { this.addLifecycleListener(new TldConfig()); } // Register the naming resources if (namingResources != null) { onameNamingResources = register(namingResources, "type=NamingResources," + getObjectNameKeyProperties()); } // Send j2ee.object.created notification if (this.getObjectName() != null) { Notification notification = new Notification("j2ee.object.created", this.getObjectName(), sequenceNumber.getAndIncrement()); broadcaster.sendNotification(notification); } }