001/** 002 * Logback: the reliable, generic, fast and flexible logging framework. 003 * Copyright (C) 1999-2022, QOS.ch. All rights reserved. 004 * 005 * This program and the accompanying materials are dual-licensed under 006 * either the terms of the Eclipse Public License v1.0 as published by 007 * the Eclipse Foundation 008 * 009 * or (per the licensee's choosing) 010 * 011 * under the terms of the GNU Lesser General Public License version 2.1 012 * as published by the Free Software Foundation. 013 */ 014package ch.qos.logback.core.model.processor; 015 016import ch.qos.logback.core.model.Model; 017 018/** 019 * Defines the relation between a dependee (Model) and a dependency (String). 020 * 021 * Note that a dependee may have multiple dependencies but 022 * {@link DependencyDefinition} applies to just one dependency relation. 023 * 024 * @author ceki 025 * 026 */ 027public class DependencyDefinition { 028 029 // depender: a component of type Model which depends on a dependee 030 Model depender; 031 // dependee: the string name of a component depended upon by the depender of type Model 032 String dependee; 033 034 public DependencyDefinition(Model depender, String dependee) { 035 this.depender = depender; 036 this.dependee = dependee; 037 038 039 } 040 041 public String getDependee() { 042 return dependee; 043 } 044 045 public Model getDepender() { 046 return depender; 047 } 048 049 050 051}