|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CustomResourceBuilderProvider
Provider of ResourceBuilder
s.
There is an extension point to register a custom
ResourceBuilderProvider
for certain URI schemes. Example to
register a filter provider for the URI schemes foo and bar:
<extension point="com.ibm.portal.cp.CustomResourceBuilderProvider" id="FooBarResourceBuilderProvider;> <factory id="FooBarResourceBuilderProvider" class="com.ibm.wps.sample.FooBarResourceBuilderProvider"> <properties> <entry key="scheme">foo</entry> <entry key="scheme">bar</entry> </properties> </factory> </extension>
This interface is designed to be implemented by clients. |
Field Summary | |
---|---|
static java.lang.String |
ATTR_CLASS
name of the class attribute used for instantiation |
static java.lang.String |
DEFAULT_EXTENSION_ID
ID of the default custom resource builder provider that dispatches to all pluged-in providers based on the type schema |
static java.lang.String |
EXTENSION_POINT_ID
ID of the ResourceBuilder extension point |
static java.lang.String |
FALLBACK_EXTENSION_ID
ID of a custom resource builder provider that does not check if a resource exists and provides no titles etc. |
Method Summary | |
---|---|
CustomResourceBuilder |
getResourceBuilder(Context ctx,
java.util.Map<java.lang.String,java.lang.String[]> params)
Obtains the ResourceBuilder for the given COR context. |
Field Detail |
---|
static final java.lang.String EXTENSION_POINT_ID
static final java.lang.String DEFAULT_EXTENSION_ID
static final java.lang.String FALLBACK_EXTENSION_ID
static final java.lang.String ATTR_CLASS
Method Detail |
---|
CustomResourceBuilder getResourceBuilder(Context ctx, java.util.Map<java.lang.String,java.lang.String[]> params) throws ResourceBuilderException
ResourceBuilder
for the given COR context.
ctx
- The COR context, never null
params
- The parameters. As of version 7.0.0
the
parameters are empty by default. This might change in later
versions.
ResourceBuilder
, never null
ResourceBuilderException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |