1 17 18 package org.apache.geronimo.gbean; 19 20 import java.io.Serializable ; 21 import java.util.Arrays ; 22 import java.util.Collections ; 23 import java.util.List ; 24 25 28 public class GConstructorInfo implements Serializable { 29 private final List attributeNames; 30 31 public GConstructorInfo() { 32 this.attributeNames = Collections.EMPTY_LIST; 33 } 34 35 public GConstructorInfo(String [] attributeNames) { 36 this(Arrays.asList(attributeNames)); 37 } 38 39 public GConstructorInfo(List attributeNames) { 40 this.attributeNames = Collections.unmodifiableList(attributeNames); 41 } 42 43 public List getAttributeNames() { 44 return attributeNames; 45 } 46 47 public String toString() { 48 return "[GConstructorInfo: attributeNames=" + attributeNames + "]"; 49 } 50 } 51 | Popular Tags |