Interface OmnibusDefiner
-
Method Summary
Modifier and TypeMethodDescriptiongetOmnibus(Class<?> callerClass) Gets anOmnibusinstance for the given caller class.booleanWhether this provider requires that the caller class be looked up.
-
Method Details
-
getOmnibus
Gets anOmnibusinstance for the given caller class. This is usually a singleton.
This method corresponds toOmnibusProvider.getOmnibus()wherecallerClassis its caller.
If the caller class is never used, thenrequiresCallerClass()should return false.- Parameters:
callerClass- the class which calledOmnibusProvider.getOmnibus(), or null if the caller class is not required- Returns:
- the central omnibus instance the caller class should be using
-
requiresCallerClass
boolean requiresCallerClass()Whether this provider requires that the caller class be looked up.
If the implementation ofgetOmnibus(Class)ignores thecallerClassparameter, this method should returnfalse- Returns:
- true if the caller class lookup is required, false otherwise
-