1 64 package com.jcorporate.expresso.kernel.internal; 65 66 import com.jcorporate.expresso.kernel.ComponentContainer; 67 import com.jcorporate.expresso.kernel.Containable; 68 import com.jcorporate.expresso.kernel.ExpressoComponent; 69 import com.jcorporate.expresso.kernel.InstallLog; 70 import com.jcorporate.expresso.kernel.InstallationOptions; 71 72 import java.util.Map ; 73 74 83 84 abstract public class ContainerImplBase implements ComponentContainer { 85 ComponentContainer parent; 86 Containable nested; 87 88 public ContainerImplBase() { 89 parent = null; 90 nested = null; 91 } 92 93 103 abstract public ExpressoComponent locateComponent(String componentName); 104 105 112 abstract public boolean isComponentExists(String componentName); 113 114 115 122 abstract public void addComponent(ExpressoComponent newComponent); 123 124 129 abstract public void removeComponent(String componentName); 130 131 132 142 abstract public void installComponent(ExpressoComponent newComponent, 143 InstallationOptions installOptions, 144 InstallLog log); 145 146 147 157 abstract public void uninstallComponent(String componentName, InstallationOptions installOptions, InstallLog log); 158 159 167 abstract public Map getChildComponents(); 168 169 public void destroyContainer() { 170 171 } 172 173 178 public Containable getContainerComponent() { 179 return nested; 180 } 181 182 188 public void setContainerComponent(Containable newComponent) { 189 nested = newComponent; 190 } 191 192 197 public ComponentContainer getParentContainer() { 198 return parent; 199 } 200 201 206 public void setParentContainer(ComponentContainer newParent) { 207 parent = newParent; 208 } 209 210 } | Popular Tags |