|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Manages a collection of LocatorResolvers. New resolvers can be added for specific
locator notation schemes. The Manager also acts as a coordinator of all the contained
resolvers — selecting the appropriate resolver to use by examining the notation
of the locator passed in.
| Method Summary | |
LocatorResolver |
addResolver(java.lang.String notation,
LocatorResolver resolver)
Adds a resolver for the specified notation to this manager. |
LocatorResolver |
getResolver(java.lang.String notation)
Returns the resolver for the specified notation. |
java.util.Map |
getResolverMap()
Returns an unmodifiable Map of resolvers by the notation they resolve. |
void |
removeResolver(java.lang.String notation)
Removes the resolver for the specified notation from the manager. |
| Methods inherited from interface org.tm4j.net.LocatorResolver |
resolve |
| Method Detail |
public LocatorResolver addResolver(java.lang.String notation,
LocatorResolver resolver)
notation - the notation resolved by the resolver.resolver - the resolver to be added.
notation
or null if there is no previously registered resolver for
the notation.public LocatorResolver getResolver(java.lang.String notation)
notation - the notation to locate the resolver for.
notation. Returns
null if no resolver is registered for notation.public void removeResolver(java.lang.String notation)
notation - The notation for which to remove the resolver.public java.util.Map getResolverMap()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||