/** * Configure context initialization parameter that is configured * in the server configuration file, rather than the application deployment * descriptor. This is convenient for establishing default values (which * may be configured to allow application overrides or not) without having * to modify the application deployment descriptor itself. */ protected static void configureApplicationListener( WebModule webModule, WebBundleDescriptor wmd) { Vector vector = wmd.getAppListenerDescriptors(); for (int i=0; i < vector.size() ; i++){ webModule.addApplicationListener( ((AppListenerDescriptor)vector.get(i)).getListener() ); } }
private void addWSServletContextListener(WebBundleDescriptor webBunDesc) { for(AppListenerDescriptor appListner: webBunDesc.getAppListenerDescriptors()) { if(appListner.getListener().equals(WSServletContextListener.class.getName())) { //already registered return; } } webBunDesc.addAppListenerDescriptor(new AppListenerDescriptorImpl(WSServletContextListener.class.getName())); }
Vector listeners = webBundleDesc.getAppListenerDescriptors(); for (int j = 0; j < listeners.size(); j++) { AppListenerDescriptor listenerDesc =
Vector appListeners = webBundleDesc.getAppListenerDescriptors(); if (appListeners!=null && !appListeners.isEmpty()) { ListenerNode listenerNode = new ListenerNode();