io.sarl.api.naming.namespace
Class FinderBasedNamespaceService
All Superinterfaces:
NamespaceService, org.arakhne.afc.services.IService
All Known Subclasses:
InjectedFinderBasedNamespaceService
class FinderBasedNamespaceService
extends AbstractNamespaceService
Implementation of a namespace service that uses the namespace finders. The finders are in charge of finding a specific type of element.
Maven Group Identifier:
io.sarl.sdk
Maven Artifact Identifier:
api.naming
Since:
0.12
Property Summary
Action Summary
Modifier and type Action and description
void addNamespaceFinder(INamespaceFinder<N,O>)
Add a namespace finder.
java.lang.Object findObjectWithoutFragment(SarlName)
Find an object by ignoring the fragment component of the given name
void removeNamespaceFinder(String)
Remove a namespace finder.
void setNamespaceFinders(Set<E>)
Change the set of namespace finders that is used by this service.
Action Details
addNamespaceFinder(INamespaceFinder<N,O>)
def addNamespaceFinder(INamespaceFinder<N,O>)
Add a namespace finder.
Parameters:
finder - the namespace finder to add.
findObjectWithoutFragment(SarlName)
def findObjectWithoutFragment(SarlName) : java.lang.Object
Find an object by ignoring the fragment component of the given name
Parameters:
name - the name of the element to search for.
Returns:
the element with the given name, or null it is was not found.
removeNamespaceFinder(String)
def removeNamespaceFinder(String)
Remove a namespace finder.
Parameters:
scheme - the scheme of the finder to remove.
setNamespaceFinders(Set<E>)
def setNamespaceFinders(Set<E>)
Change the set of namespace finders that is used by this service.

This function could be overridden and annotated in subtypes in order to be used by the Guice injector.
Parameters:
finders - the set of finders.