001 /**
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.apache.camel.model;
018
019 import java.util.ArrayList;
020 import java.util.List;
021 import javax.xml.bind.annotation.XmlAccessType;
022 import javax.xml.bind.annotation.XmlAccessorType;
023 import javax.xml.bind.annotation.XmlElement;
024 import javax.xml.bind.annotation.XmlRootElement;
025
026 /**
027 * <code>ContextScanDefinition</code> represents a <contextScan/> element.
028 */
029 @XmlRootElement(name = "contextScan")
030 @XmlAccessorType(XmlAccessType.FIELD)
031 public class ContextScanDefinition {
032 @XmlElement(name = "excludes")
033 private List<String> excludes = new ArrayList<String>();
034 @XmlElement(name = "includes")
035 private List<String> includes = new ArrayList<String>();
036
037 public ContextScanDefinition() {
038 }
039
040 public List<String> getExcludes() {
041 return excludes;
042 }
043
044 public List<String> getIncludes() {
045 return includes;
046 }
047
048 public void setExcludes(List<String> excludes) {
049 this.excludes = excludes;
050 }
051
052 public void setIncludes(List<String> includes) {
053 this.includes = includes;
054 }
055
056 protected void clear() {
057 excludes.clear();
058 includes.clear();
059 }
060 }