1 19 20 package org.netbeans.spi.registry; 21 22 import org.netbeans.api.registry.ContextException; 23 import org.netbeans.api.registry.ContextListener; 24 25 import java.util.Collection ; 26 27 69 public interface BasicContext { 70 71 75 81 BasicContext getRootContext(); 82 83 88 String getContextName(); 89 90 96 BasicContext getSubcontext(String subcontextName); 97 98 103 BasicContext getParentContext(); 104 105 113 BasicContext createSubcontext(String subcontextName) throws ContextException; 114 115 124 void destroySubcontext(String subcontextName) throws ContextException; 125 126 127 131 137 Collection getSubcontextNames(); 138 139 145 Collection getBindingNames(); 146 147 153 Collection getAttributeNames(String bindingName); 154 155 156 160 167 Object lookupObject(String bindingName) throws ContextException; 168 169 178 void bindObject(String bindingName, Object object) throws ContextException; 179 180 181 185 195 String getAttribute(String bindingName, String attributeName) throws ContextException; 196 197 208 void setAttribute(String bindingName, String attributeName, String value) throws ContextException; 209 210 211 215 225 void addContextListener(ContextListener listener); 226 227 233 void removeContextListener(ContextListener listener); 234 235 } 236 | Popular Tags |