org.echocat.jomon.spring.AutomaticCacheCreatorDiscovery Maven / Gradle / Ivy
/*****************************************************************************************
* *** BEGIN LICENSE BLOCK *****
*
* Version: MPL 2.0
*
* echocat Jomon, Copyright (c) 2012-2013 echocat
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* *** END LICENSE BLOCK *****
****************************************************************************************/
package org.echocat.jomon.spring;
import org.echocat.jomon.cache.management.CacheCreator;
import org.springframework.context.ApplicationContext;
import javax.annotation.Nonnull;
public class AutomaticCacheCreatorDiscovery extends AutomaticCollectionBasedServicesDiscovery {
public AutomaticCacheCreatorDiscovery() {
super(CacheCreator.class);
}
@Override
protected boolean isApplicable(@Nonnull Class> type, @Nonnull String withBeanName, @Nonnull ApplicationContext of) {
return CacheCreator.class.isAssignableFrom(type);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy