public class MapLookupExtractorFactory extends Object implements LookupExtractorFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
MapLookupExtractorFactory.MapLookupIntrospectionHandler |
| Constructor and Description |
|---|
MapLookupExtractorFactory(Map<String,String> map,
boolean isOneToOne) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
close()
This method will be called to stop the LookupExtractor upon deletion.
|
boolean |
equals(Object o) |
LookupExtractor |
get() |
LookupIntrospectHandler |
getIntrospectHandler() |
int |
hashCode() |
boolean |
replaces(LookupExtractorFactory other)
For MapLookups, the replaces consideration is very easy, it simply considers if the other is the same as this one
|
boolean |
start()
This method will be called to start the LookupExtractor upon registered
Calling start multiple times should return true if successfully started.
|
public boolean start()
LookupExtractorFactoryThis method will be called to start the LookupExtractor upon registered Calling start multiple times should return true if successfully started.
start in interface LookupExtractorFactoryLookupExtractor otherwise returns true.public boolean close()
LookupExtractorFactoryThis method will be called to stop the LookupExtractor upon deletion. Calling this method multiple times should always return true if successfully closed.
close in interface LookupExtractorFactoryLookupExtractor otherwise returns truepublic boolean replaces(@Nullable LookupExtractorFactory other)
replaces in interface LookupExtractorFactoryother - Some other LookupExtractorFactory which might need replaced@Nullable public LookupIntrospectHandler getIntrospectHandler()
getIntrospectHandler in interface LookupExtractorFactorynull if it is not supported.
This will be called once per HTTP request to introspect the actual lookup.public LookupExtractor get()
get in interface com.google.common.base.Supplier<LookupExtractor>Copyright © 2011–2017. All rights reserved.