1 package org.jerpa.component; 2 3 8 9 import org.jerpa.util.Version; 10 import org.jerpa.component.configuration.*; 11 12 public class Component 13 { 14 private String name = "Default Name"; 15 private String role = "org.jerpa.component.Component"; 16 private String desc = "Default Description"; 17 private String author = "The JERPA Team"; 18 private String copyright = "JERPA Team. This is GNU Software."; 19 private Version version = new Version(0,0,0); 20 private Boolean configurable = new Boolean (false); 21 private Boolean serviceable = new Boolean (false); 22 protected Configuration configuration = new Configuration(); 23 protected ComponentManager componentManager = null; 24 25 protected void setName(String _value) { name=_value; }; 26 protected void setRole(String _value) { role=_value; }; 27 protected void setDesc(String _value) { desc=_value; }; 28 protected void setAuthor(String _value) { author=_value; }; 29 protected void setCopyright(String _value) { copyright=_value; }; 30 protected void setVersion(Version _value) { version=_value; }; 31 protected void setServiceable(Boolean _value) { serviceable=_value; }; 32 33 public String getName() { return name; }; 34 public String getRole() { return role; }; 35 public String getDesc() { return desc; }; 36 public String getAuthor() { return author; }; 37 public String getCopyright() { return copyright; }; 38 public Version getVersion() { return version; }; 39 public Boolean getServiceable() { return serviceable; }; 40 public Configuration getConfiguration() { return configuration; }; 41 42 public void init(ComponentManager _manager) { componentManager = _manager; } 43 }; 44 | Popular Tags |