public interface LookupExtractorFactory extends com.google.common.base.Supplier<LookupExtractor>
LookupExtractorFactory
supplier of type LookupExtractor
.
Such factory will manage the state and life cycle of an given lookup.
If a LookupExtractorFactory wishes to support idempotent updates, it needs to implement the `replaces` methodModifier and Type | Method and Description |
---|---|
boolean |
close()
This method will be called to stop the LookupExtractor upon deletion.
|
LookupIntrospectHandler |
getIntrospectHandler() |
boolean |
replaces(LookupExtractorFactory other)
Determine if this LookupExtractorFactory should replace some other LookupExtractorFactory.
|
boolean |
start()
This method will be called to start the LookupExtractor upon registered
Calling start multiple times should return true if successfully started.
|
boolean start()
This method will be called to start the LookupExtractor upon registered Calling start multiple times should return true if successfully started.
LookupExtractor
otherwise returns true.boolean close()
This method will be called to stop the LookupExtractor upon deletion. Calling this method multiple times should always return true if successfully closed.
LookupExtractor
otherwise returns trueboolean replaces(@Nullable LookupExtractorFactory other)
other
- Some other LookupExtractorFactory which might need replaced@Nullable LookupIntrospectHandler getIntrospectHandler()
null
if it is not supported.
This will be called once per HTTP request to introspect the actual lookup.Copyright © 2011–2017. All rights reserved.