1 27 28 package org.objectweb.jonas_ejb.deployment.api; 29 30 import java.util.LinkedList ; 31 import java.util.List ; 32 33 import org.objectweb.jonas_ejb.deployment.xml.ActivationConfig; 34 import org.objectweb.jonas_ejb.deployment.xml.ActivationConfigProperty; 35 36 import org.objectweb.jonas_lib.deployment.xml.JLinkedList; 37 38 39 44 45 public class ActivationConfigDesc { 46 47 50 private String description = null; 51 52 53 56 private List activationConfigPropertyList = null; 57 58 61 public ActivationConfigDesc(ActivationConfig ac) { 62 if (ac != null) { 63 description = ac.getDescription(); 64 activationConfigPropertyList = convert(ac.getActivationConfigPropertyList()); 65 } else { 66 activationConfigPropertyList = new LinkedList (); 67 } 68 } 69 70 74 public String getDescription() { 75 return description; 76 } 77 78 82 public List getActivationConfigPropertyList() { 83 return activationConfigPropertyList; 84 } 85 86 private List convert(JLinkedList acpl) { 87 ActivationConfigProperty acp = null; 88 LinkedList ll = new LinkedList (); 89 for (int i = 0; i < acpl.size(); i++) { 90 acp = (ActivationConfigProperty) acpl.get(i); 91 ll.add(new ActivationConfigPropertyDesc(acp)); 92 } 93 return ll; 94 } 95 } 96 | Popular Tags |