org.appops.cache.app.CacheServiceInitializer Maven / Gradle / Ivy
/*
* AppOps is a Java framework to develop, deploy microservices with ease and is available for free
* and common use developed by AinoSoft ( www.ainosoft.com )
*
* AppOps and AinoSoft are registered trademarks of Aino Softwares private limited, India.
*
* Copyright (C) <2016>
*
* This program is free software: you can redistribute it and/or modify it under the terms of the
* GNU General Public License as published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version along with applicable additional terms as
* provisioned by GPL 3.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License and applicable additional terms
* along with this program.
*
* If not, see and
*/
package org.appops.cache.app;
import com.google.inject.Inject;
import com.google.inject.Provider;
import java.lang.annotation.Annotation;
import org.appops.cache.core.CacheService;
import org.appops.core.deployment.ServiceConfiguration;
import org.appops.service.ServiceInitializer;
import org.appops.service.generator.ServiceMetaGenerator;
import org.appops.slim.base.api.ServiceMetaManager;
/**
* Initializes service details. By default it will scan and load service meta definition into store.
*
* @author deba
* @version $Id: $Id
*/
@CacheService
public class CacheServiceInitializer extends ServiceInitializer {
@Inject
/**
*
* Constructor for CacheServiceInitializer.
*
*
* @param serviceStore a {@link com.google.inject.Provider} object.
* @param serviceMetaGenerator a {@link com.google.inject.Provider} object.
*/
public CacheServiceInitializer(Provider serviceStore,
Provider serviceMetaGenerator) {
super(serviceMetaGenerator, serviceStore);
}
/** {@inheritDoc} */
@Override
public String initialize(String serviceName, ServiceConfiguration config,
Class extends Annotation> serviceAnnotation) {
return addServiceMeta(serviceName, config, serviceAnnotation);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy