|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.portal.resolver.helper.CORResolutionService
public class CORResolutionService
Resolution service that implements itself by dispatching to a resolution service provided by the COR.
Field Summary | |
---|---|
protected ResolutionService |
defaultService
default lookup service |
static ResolutionService |
SINGLETON
Singleton that can be used to do COR lookups that don't require a fallback |
Fields inherited from interface com.ibm.portal.resolver.ResolutionService |
---|
ATTR_CLASS, DEFAULT_EXTENSION_ID, EXTENSION_POINT_ID |
Constructor Summary | |
---|---|
CORResolutionService()
initialize the resolution service without default resolution service |
|
CORResolutionService(ResolutionService aDefaultService)
Initialize the resolution service passing a default service reference that will be used if no COR service can be found |
Method Summary | |
---|---|
protected ResolutionService |
lookupService(java.net.URI uri,
java.lang.Class<ResolutionService> cls,
Context ctx)
Uses the COR to find a service that exposes a particular interface. |
boolean |
resolve(Resolved res,
java.net.URI uri,
java.lang.String verb,
java.util.Map<java.lang.String,java.lang.String[]> params,
java.util.Set<Binding> acceptedBindings,
Context ctx)
Performs the resolution of the URI into navigational state by modifying the content of the resolved bean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ResolutionService SINGLETON
protected final ResolutionService defaultService
Constructor Detail |
---|
public CORResolutionService()
public CORResolutionService(ResolutionService aDefaultService)
aDefaultService
- default resolution service, may be null
Method Detail |
---|
protected ResolutionService lookupService(java.net.URI uri, java.lang.Class<ResolutionService> cls, Context ctx) throws org.eclipse.core.runtime.CoreException, ServiceNotFoundException
uri
- POC URI to resolvecls
- class object for the service to locatectx
- COR context
org.eclipse.core.runtime.CoreException
- - some COR stuff failed
ServiceNotFoundException
- - the service could not be locatedpublic boolean resolve(Resolved res, java.net.URI uri, java.lang.String verb, java.util.Map<java.lang.String,java.lang.String[]> params, java.util.Set<Binding> acceptedBindings, Context ctx) throws ResolutionException, StateException
ResolutionService
Resolved
object
around to allow for an aggregation of navigational state modifications of
such delegates.
resolve
in interface ResolutionService
res
- Value object that serves as an in/out parameter and that
carries the navigational state.uri
- URI to resolve, not null
verb
- resolution verb, may be null
params
- additional context parameters that are required to perform the
resolution. The map is probably unmodifiable and should not be
modified even if it happens to be modifiable. The keys are of
type String, the values of type String[].acceptedBindings
- unmodifiable set of the bindings that the caller accepts as
results of the resolution process. Each entry in this set is
an object that implements the Binding
interface.ctx
- Resolution context
true
if the resolver was able to process the URI,
else false
. A return value of false
does not indicate an error situation. Reasons for not being able
to resolve a URI could e.g. be an unsupported binding. Clients
can in this case try to resolve the URI on their own or dispatch
to a different ResolutionService
.
ResolutionException
- - if the URI cannot be resolved
StateException
- - if errors during state modifications occur
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |