public class Orienteer extends Object
| Constructor and Description |
|---|
Orienteer() |
| Modifier and Type | Method and Description |
|---|---|
Orienteer |
addConverter(Converter converter)
Add a type Converter for general use to enable a new return type to be mentioned in the configuration interface
passed to Orienteer.make().
|
<T extends Lookup> |
addConverter(Converter converter,
Class<T> lookupType)
Add a type Converter for use only on values returned from a particular kind of Lookup, to enable a new return type
to be mentioned in the configuration interface passed to Orienteer.make().
|
Orienteer |
inhibitInitialCheck()
Call this if for some reason you don't want make() to run its standard initial check to make sure all the
configuration values are readable.
|
<T> T |
make(Class<T> singletonInterface,
Lookup... lookups)
Manufacture and return an object of a class that implements the provided interface, such that methods called
on that object will produce the highest-priority configuration values available for them.
|
public Orienteer addConverter(Converter converter)
converter - Custom Converter for the new type.public <T extends Lookup> Orienteer addConverter(Converter converter, Class<T> lookupType)
converter - Custom Converter for the new type.lookupType - Only use this converter for configuration values from a Lookup of this type.public Orienteer inhibitInitialCheck()
public <T> T make(Class<T> singletonInterface, Lookup... lookups)
singletonInterface - Interface for configuration objectlookups - Lookups to be consulted in order of priority. If a particular Lookup successfully provides a
configuration value, later-specified Lookups are not consulted.Copyright © 2017. All rights reserved.