Package nl.vpro.io.prepr.spring
Class SpringPreprRepositories
- java.lang.Object
-
- nl.vpro.io.prepr.spring.SpringPreprRepositories
-
- All Implemented Interfaces:
Iterable<PreprRepository>
,PreprRepositories
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class SpringPreprRepositories extends Object implements PreprRepositories, org.springframework.context.ApplicationContextAware
- Since:
- 0.3
- Author:
- Michiel Meeuwissen
-
-
Field Summary
Fields Modifier and Type Field Description static String
DELAY_AFTER_TOKEN
static String
LENIENT_JSON
static String
LOG_AS_CURL
static String
PREF
static String
SCOPES
-
Constructor Summary
Constructors Constructor Description SpringPreprRepositories()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fill()
Optional<PreprRepository>
get(String channel)
Map<String,PreprRepository>
getRepositories()
protected Optional<String>
getSetting(String key, String channel)
Iterator<PreprRepository>
iterator()
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
PREF
public static final String PREF
- See Also:
- Constant Field Values
-
LOG_AS_CURL
public static final String LOG_AS_CURL
- See Also:
- Constant Field Values
-
SCOPES
public static final String SCOPES
- See Also:
- Constant Field Values
-
DELAY_AFTER_TOKEN
public static final String DELAY_AFTER_TOKEN
- See Also:
- Constant Field Values
-
LENIENT_JSON
public static final String LENIENT_JSON
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public Optional<PreprRepository> get(String channel)
- Specified by:
get
in interfacePreprRepositories
-
getRepositories
public Map<String,PreprRepository> getRepositories()
- Specified by:
getRepositories
in interfacePreprRepositories
-
iterator
@NonNull public Iterator<PreprRepository> iterator()
- Specified by:
iterator
in interfaceIterable<PreprRepository>
-
setApplicationContext
public void setApplicationContext(@NonNull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
fill
@PostConstruct public void fill()
-
-