This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fm.ask.infrastructure.caching; | |
import com.google.common.base.Function; | |
import com.google.common.base.Ticker; | |
import org.springframework.cache.CacheManager; | |
import org.springframework.cache.annotation.EnableCaching; | |
import org.springframework.cache.support.CompositeCacheManager; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fm.ask.infrastructure.caching; | |
import com.google.common.base.Supplier; | |
import com.google.common.base.Ticker; | |
import com.google.common.cache.CacheBuilder; | |
import com.rubylight.conf.IConfListener; | |
import com.rubylight.conf.IConfProperty; | |
import org.springframework.cache.Cache; | |
import org.springframework.cache.CacheManager; | |
import org.springframework.cache.guava.GuavaCacheManager; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fm.ask.infrastructure.caching; | |
import org.springframework.cache.CacheManager; | |
public abstract class CacheManagerFactory { | |
protected abstract CacheManager createInstance() ; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Method method = PersonController.class.getMethod("show", Long.class); | |
Link link = linkTo(method, 2L).withSelfRel(); | |
assertThat(link.getHref(), is("/people/2"))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Validator | |
validate(Q) | |
@Qualifier | |
@Inherited | |
@interface V1Annotation { | |
} | |
@Component |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onFloatingActionTrigger() { | |
getRandomQuestion(); | |
} | |
private void getRandomQuestion() { | |
setRefreshing(true); | |
NetworkActionMaker.MKE.networkRequest(mActivity, RequestDefinition.MY_QUESTIONS_GET_RANDOM, new NetworkActionCallback<QuestionWrapper>() { | |
// this is a non-abstract TEMPLATE METHOD. Empty by default. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set 'zzk_skip_avatar_cache_for_finish_avatar_upload' hostGroup 'any' appGroup 'any' to '0' | |
set 'zzk_email_configuration_graceful_degradation' to 'yoman' | |
set 'zzk_json' to json( | |
[ | |
'socket-timeout' : 10000, | |
'connection-timeout': 5000 | |
]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ensure 'zzk_skip_avatar_cache_for_finish_avatar_upload', 'any', 'any' { | |
is '0' | |
} | |
ensure 'zzk_email_configuration_graceful_degradation' { | |
is 'yoman' | |
} | |
ensure 'zzk_json' { | |
is json( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ensure 'zzk_skip_avatar_cache_for_finish_avatar_upload', 'any', 'any' { | |
is '0' | |
} | |
ensure 'zzk_email_configuration_graceful_degradation' { | |
is 'yoman' | |
} | |
ensure 'zzk_json' { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def "repeatedly resolves correct client in getClientForToken"() { | |
... | |
} |