1 23 package com.sun.enterprise.repository; 24 25 import java.io.Serializable ; 26 27 32 public class CustomResource extends J2EEResourceBase implements Serializable { 33 34 private String resType_; 35 private String factoryClass_; 36 37 public CustomResource(String name) { 38 super(name); 39 } 40 41 protected J2EEResource doClone(String name) { 42 CustomResource clone = new CustomResource(name); 43 clone.setResType(getResType()); 44 clone.setFactoryClass(getFactoryClass()); 45 return clone; 46 } 47 48 public int getType() { 49 return J2EEResource.CUSTOM_RESOURCE; 50 } 51 52 public String getResType() { 53 return resType_; 54 } 55 56 public void setResType(String resType) { 57 resType_ = resType; 58 } 59 60 public String getFactoryClass() { 61 return factoryClass_; 62 } 63 64 public void setFactoryClass(String factoryClass) { 65 factoryClass_ = factoryClass; 66 } 67 68 public String toString() { 69 return "< Custom Resource : " + getName() + " , " + getResType() + "... >"; 70 } 71 } 72 | Popular Tags |