1 19 20 package org.netbeans.modules.registry; 21 22 import org.netbeans.api.registry.*; 23 import org.netbeans.spi.registry.BasicContext; 24 25 29 public abstract class ApiContextFactory { 30 31 public static ApiContextFactory DEFAULT; 32 33 static { 35 Class c = Context.class; 36 try { 37 Class.forName(c.getName(), true, c.getClassLoader()); 38 } catch (Exception ex) { 39 ex.printStackTrace(); 40 } 41 } 42 43 abstract public Context createContext(BasicContext ctx); 44 45 abstract public ContextException createContextException(BasicContext ctx, String str); 46 47 abstract public SubcontextEvent createSubcontextEvent(BasicContext source, String subcontextName, int type); 48 49 abstract public AttributeEvent createAttributeEvent(BasicContext source, String bindingName, String attributeName, int type); 50 51 abstract public BindingEvent createBindingEvent(BasicContext source, String bindingName, int type); 52 53 abstract public ObjectRef createObjectRef (BasicContext rootCtx, String ctxName, String bindingName); 54 55 abstract public ObjectRef createObjectRef (BasicContext ctx, String bindingName); 56 57 abstract public BasicContext getBasicContext(Context ctx); 58 } 59 | Popular Tags |