public interface ToolkitContext
Toolkit
is to be constructedModifier and Type | Method and Description |
---|---|
void |
consume()
Consume the context.
|
Element |
getElement()
The primary Element (if any) for which toolkit is requested.
|
Context |
getIdeContext()
The current IDE
Context . |
ToolkitRegistry |
getMainToolkitRegistry()
Get the main ToolkitRegistry, i.e.
|
SpiToolkitRegistry |
getSpiToolkitRegistry()
If the toolkit provider needs to recurse back into the framework to construct additional toolkits of the same type, with the same
Context , then to prevent infinite recursion, the SPI Toolkit Registry should be used. |
java.lang.Class |
getToolkitClass()
The requested interface.
|
Element getElement()
java.lang.Class getToolkitClass()
SpiToolkitRegistry getSpiToolkitRegistry()
Context
, then to prevent infinite recursion, the SPI Toolkit Registry should be used. This starts the query from a point just below the current ToolkitProvider in the stack.ToolkitRegistry getMainToolkitRegistry()
void consume()
ToolkitProvider
can guarantee that any client constructing the original Toolkit with the given IDE Context will not need to query any additional providers past this one (going down the dependency tree, towards the root), OR if it wants to explicitly override all requests and designate itself as the authoritative provider.