View Javadoc
1 /* ==================================================================== 2 * Bigyo Software License, version 1.1 3 * 4 * Copyright (c) 2004, Zsombor Gegesy. All rights reserved. 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. 11 * 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in 14 * the documentation and/or other materials provided with the 15 * distribution. 16 * 17 * 3. Neither the name of the Bigyo Group nor the name "Bigyo" nor 18 * the names of its contributors may be used to endorse or promote 19 * products derived from this software without specific prior 20 * written permission. 21 * 22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 25 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 26 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 27 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 28 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 30 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 32 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 * POSSIBILITY OF SUCH DAMAGE. 34 * 35 * ==================================================================== 36 */ 37 38 package net.sf.bigyo.container; 39 40 /*** 41 * @author zsombor 42 * 43 * Created on 2004.04.01. 44 */ 45 public class ClassDependency { 46 47 public final static String AFTER = "after"; 48 public final static String BEFORE = "before"; 49 public final static String OPTIONAL = null; 50 public final static String REQUIRED = "required"; 51 52 String classAlias; 53 String dependencyType; 54 String methodName; 55 56 /*** 57 * 58 */ 59 public ClassDependency() { 60 super(); 61 } 62 63 /*** 64 * @param classAlias 65 * @param dependencyType 66 */ 67 public ClassDependency(String classAlias, String dependencyType) { 68 super(); 69 this.classAlias = classAlias; 70 this.dependencyType = dependencyType; 71 } 72 73 /*** 74 * @param classAlias 75 * @param dependencyType 76 * @param methodName 77 */ 78 public ClassDependency(String classAlias, String dependencyType, String methodName) { 79 super(); 80 this.classAlias = classAlias; 81 this.dependencyType = dependencyType; 82 this.methodName = methodName; 83 } 84 85 /*** 86 * @return Returns the classAlias. 87 */ 88 public String getClassAlias() { 89 return classAlias; 90 } 91 92 /*** 93 * @param classAlias 94 * The classAlias to set. 95 */ 96 public void setClassAlias(String classAlias) { 97 this.classAlias = classAlias; 98 } 99 100 /*** 101 * @return Returns the dependencyType. 102 */ 103 public String getDependencyType() { 104 return dependencyType; 105 } 106 107 /*** 108 * @param dependencyType 109 * The dependencyType to set. 110 */ 111 public void setDependencyType(String dependencyType) { 112 this.dependencyType = dependencyType; 113 } 114 115 /*** 116 * @return Returns the methodName. 117 */ 118 public String getMethodName() { 119 return methodName; 120 } 121 122 /*** 123 * @param methodName 124 * The methodName to set. 125 */ 126 public void setMethodName(String methodName) { 127 this.methodName = methodName; 128 } 129 130 /* 131 * (non-Javadoc) 132 * 133 * @see java.lang.Object#toString() 134 */ 135 public String toString() { 136 return "Dep[" + classAlias + "," + dependencyType + (methodName != null ? methodName : "") + ')'; 137 } 138 139 }

This page was automatically generated by Maven