001/* 002 * (C) Copyright 2006-2010 Nuxeo SAS (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * bstefanescu 016 */ 017package org.nuxeo.runtime.jetty; 018 019import javax.servlet.ServletContextListener; 020 021import org.nuxeo.common.xmap.annotation.XNode; 022import org.nuxeo.common.xmap.annotation.XObject; 023 024/** 025 * @author <a href="mailto:bs@nuxeo.com">Bogdan Stefanescu</a> 026 */ 027@XObject("listener") 028public class ServletContextListenerDescriptor { 029 030 @XNode("@name") 031 protected String name; 032 033 @XNode("@class") 034 protected Class<? extends ServletContextListener> clazz; 035 036 @XNode("@context") 037 protected String context = "/"; 038 039 public ServletContextListenerDescriptor() { 040 } 041 042 public Class<?> getClazz() { 043 return clazz; 044 } 045 046 public String getContext() { 047 return context; 048 } 049 050 public String getName() { 051 return name; 052 } 053 054 public void setName(String name) { 055 this.name = name; 056 } 057}