net.anotheria.anosite.gen.anoaccessconfiguration.service.fixture.AnoAccessConfigurationServiceFixtureFactory Maven / Gradle / Ivy
/**
********************************************************************************
*** AnoAccessConfigurationServiceFixtureFactory.java ***
*** The factory for the IAnoAccessConfigurationService 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.anoaccessconfiguration.service.fixture;
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.anosite.gen.anoaccessconfiguration.service.IAnoAccessConfigurationService;
import net.anotheria.asg.service.IFixtureService;
import net.anotheria.anoprise.metafactory.ServiceFactory;
public class AnoAccessConfigurationServiceFixtureFactory implements ServiceFactory{
private static AtomicInteger instanceCounter = new AtomicInteger(0);
private static IAnoAccessConfigurationService defaultInstance = createAnoAccessConfigurationService();
public IAnoAccessConfigurationService create(){
return createAnoAccessConfigurationService();
}
public static IAnoAccessConfigurationService createAnoAccessConfigurationService(){
MoskitoInvokationProxy proxy = new MoskitoInvokationProxy(
createInstance(),
new ServiceStatsCallHandler(),
new ServiceStatsFactory(),
"IAnoAccessConfigurationService-"+instanceCounter.incrementAndGet(),
"service",
"asg-fixture",
IAnoAccessConfigurationService.class, ASGService.class, IFixtureService.class
);
return (IAnoAccessConfigurationService) proxy.createProxy();
}
private static IAnoAccessConfigurationService createInstance(){
return AnoAccessConfigurationServiceFixtureImpl.getInstance();
}
static IAnoAccessConfigurationService getDefaultInstance(){
return defaultInstance;
}
}