public interface ToolkitProvider
Toolkit
in the ToolkitRegistry
.
A ToolkitProvider
is queried when a Toolkit
is requested from
the ToolkitRegistry
. It is passed a ToolkitContext
to examine,
which contains, among other things, the Toolkit
interface class being requested.
If the provider determines that it can construct an implementation of the Toolkit
,
it returns a toolkit builder, an instance of AbstractToolkitBuilder
, which may
be called to actually build the toolkit object.
A ToolkitProvider
can be registered in ToolkitProviders
programmatically
or declaratively.
Modifier and Type | Method and Description |
---|---|
AbstractToolkitBuilder |
create(ToolkitContext tkContext) |
AbstractToolkitBuilder create(ToolkitContext tkContext) throws ToolkitBuildException
ToolkitBuildException