|
org.netbeans.modules.registry/1 1.8 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.spi.registry.SpiUtils
public final class SpiUtils
This class contains helper static methods intended for use by SPI clients only; normal API clients which do not implement SPI contexts will not need them.
Method Summary | |
---|---|
static AttributeEvent |
createAttributeEvent(BasicContext source,
String bindingName,
String attributeName,
int type)
Create AttributeEvent instance. |
static BindingEvent |
createBindingEvent(BasicContext source,
String bindingName,
int type)
Create BindingEvent instance. |
static Context |
createContext(BasicContext ctx)
Create API context for the given SPI context. |
static ContextException |
createContextException(BasicContext ctx,
String str)
Create ContextException instance. |
static ObjectRef |
createObjectRef(BasicContext context,
String bindingName)
Creates new instance of ObjectRef. |
static ObjectRef |
createObjectRef(BasicContext rootContext,
String absoluteContextName,
String bindingName)
Creates new instance of ObjectRef. |
static SubcontextEvent |
createSubcontextEvent(BasicContext source,
String subcontextName,
int type)
Create SubcontextEvent instance. |
static BasicContext |
merge(MergedContextProvider mergeProvider)
Returns context that merges all its delegates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Context createContext(BasicContext ctx)
public static ContextException createContextException(BasicContext ctx, String str)
ctx
- context; should be specified, but null is acceptablestr
- optional exception description
public static SubcontextEvent createSubcontextEvent(BasicContext source, String subcontextName, int type)
source
- context; cannot be nullsubcontextName
- name of created or deleted subcontext; cannot be nulltype
- type; see SubcontextEvent
for concrete values
public static BindingEvent createBindingEvent(BasicContext source, String bindingName, int type)
source
- context; cannot be nullbindingName
- name of the affected binding; can be null if accurate information
about change is not availabletype
- type; see BindingEvent
for concrete values
public static AttributeEvent createAttributeEvent(BasicContext source, String bindingName, String attributeName, int type)
source
- context; cannot be nullbindingName
- name of the binding which attribute was changed
or null for the context attributeattributeName
- attribute name; can be null if accurate information
about change is not availabletype
- type; see AttributeEvent
for concrete values
public static ObjectRef createObjectRef(BasicContext rootContext, String absoluteContextName, String bindingName)
rootContext
- root context. See Context.getRootContext()
absoluteContextName
- absolute name of context relative to root context. See Context.getAbsoluteContextName()
bindingName
- name of binding
public static ObjectRef createObjectRef(BasicContext context, String bindingName)
context
- contextbindingName
- name of binding
public static BasicContext merge(MergedContextProvider mergeProvider)
mergeProvider
- provides delegates; see MergedContextProvider
|
org.netbeans.modules.registry/1 1.8 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |