public class ServiceNamespaceFinder extends Object implements INamespaceFinder<ServiceName,com.google.common.util.concurrent.Service>
Constructor and Description |
---|
ServiceNamespaceFinder(injector : com.google.inject.Injector)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.Service |
find(name : ServiceName)
Find and replies the object with the given name.
|
protected com.google.inject.Injector |
getInjector() |
String |
getScheme()
Replies the name scheme supported by this finder.
|
@Inject
public new
(injector : com.google.inject.Injector)
injector
- the injector to be used by this finder for obtaining the service instances.@Pure
public def
getScheme() : String
INamespaceFinder
getScheme
in interface INamespaceFinder<ServiceName,com.google.common.util.concurrent.Service>
@Pure
public def
find(name : ServiceName) : com.google.common.util.concurrent.Service
INamespaceFinder
find
in interface INamespaceFinder<ServiceName,com.google.common.util.concurrent.Service>
name
- the name of the object to search for.null
if the object is not found.@Pure
protected def
getInjector() : com.google.inject.Injector
Copyright © 2021 the original authors or authors.