net.anotheria.anosite.gen.anoaccessapplicationdata.service.AnoAccessApplicationDataServiceFactory Maven / Gradle / Ivy
/**
********************************************************************************
*** AnoAccessApplicationDataServiceFactory.java ***
*** The factory for the IAnoAccessApplicationDataService implementation. ***
*** generated by AnoSiteGenerator (ASG), Version: 3.2.2 ***
*** Copyright (C) 2005 - 2023 Anotheria.net, www.anotheria.net ***
*** All Rights Reserved. ***
********************************************************************************
*** Don't edit this code, if you aren't sure ***
*** that you do exactly know what you are doing! ***
*** It's better to invest time in the generator, as into the generated code. ***
********************************************************************************
*/
package net.anotheria.anosite.gen.anoaccessapplicationdata.service;
import java.util.concurrent.atomic.AtomicInteger;
import net.anotheria.moskito.core.dynamic.MoskitoInvokationProxy;
import net.anotheria.moskito.core.predefined.ServiceStatsCallHandler;
import net.anotheria.moskito.core.predefined.ServiceStatsFactory;
import net.anotheria.asg.service.ASGService;
import net.anotheria.anoprise.metafactory.ServiceFactory;
public class AnoAccessApplicationDataServiceFactory implements ServiceFactory{
private static AtomicInteger instanceCounter = new AtomicInteger(0);
private static IAnoAccessApplicationDataService defaultInstance = createAnoAccessApplicationDataService();
public IAnoAccessApplicationDataService create(){
return createAnoAccessApplicationDataService();
}
public static IAnoAccessApplicationDataService createAnoAccessApplicationDataService(){
MoskitoInvokationProxy proxy = new MoskitoInvokationProxy(
createInstance(),
new ServiceStatsCallHandler(),
new ServiceStatsFactory(),
"IAnoAccessApplicationDataService-"+instanceCounter.incrementAndGet(),
"service",
"asg-cms",
IAnoAccessApplicationDataService.class, ASGService.class
);
return (IAnoAccessApplicationDataService) proxy.createProxy();
}
private static IAnoAccessApplicationDataService createInstance(){
return AnoAccessApplicationDataServiceImpl.getInstance();
}
static IAnoAccessApplicationDataService getDefaultInstance(){
return defaultInstance;
}
}