public class FinderBasedNamespaceService extends AbstractNamespaceService
Modifier and Type | Method and Description |
---|---|
void |
addNamespaceFinder(finder : INamespaceFinder<?,?>)
Add a namespace finder.
|
Object |
findObjectWithoutFragment(name : SarlName)
Find an object with the given name, but ignoring the fragment.
|
void |
removeNamespaceFinder(scheme : NameScheme)
Remove a namespace finder.
|
void |
setNamespaceFinders(finders : Set<INamespaceFinder>)
Change the set of namespace finders that is used by this service.
|
findObject, findObject, getNameParser, setNameParser
doStart, doStop, onStart, onStop
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, doCancelStart, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findObject, findObject
@Inject
public def
setNamespaceFinders(finders : Set<INamespaceFinder>) : void
FinderBasedNamespaceService
This function is annoted in order to be used by the Guice injector.
finders
- the set of finders.public def
addNamespaceFinder(finder : INamespaceFinder<?,?>) : void
FinderBasedNamespaceService
finder
- the namespace finder to add.public def
removeNamespaceFinder(scheme : NameScheme) : void
FinderBasedNamespaceService
scheme
- the scheme of the finder to remove.public def
findObjectWithoutFragment(name : SarlName) : Object
AbstractNamespaceService
findObjectWithoutFragment
in class AbstractNamespaceService
name
- the name of the object, never null
.null
if the object was not found.Copyright © 2020 the original authors or authors.