Search in sources :

Example 1 with EzyAppSetupImpl

use of com.tvd12.ezyfoxserver.command.impl.EzyAppSetupImpl in project ezyfox-server by youngmonkeys.

the class EzySimpleAppContext method doInit.

@Override
protected void doInit() {
    EzySetup setup = new EzyAppSetupImpl(app);
    this.sendResponse = new EzyAppSendResponseImpl(this);
    this.properties.put(EzyAppSendResponse.class, sendResponse);
    this.properties.put(EzyHandleException.class, new EzyAppHandleExceptionImpl(app));
    this.properties.put(EzySetup.class, setup);
    this.properties.put(EzyAppSetup.class, setup);
}
Also used : EzyAppHandleExceptionImpl(com.tvd12.ezyfoxserver.command.impl.EzyAppHandleExceptionImpl) EzyAppSetupImpl(com.tvd12.ezyfoxserver.command.impl.EzyAppSetupImpl) EzyAppSendResponseImpl(com.tvd12.ezyfoxserver.command.impl.EzyAppSendResponseImpl)

Example 2 with EzyAppSetupImpl

use of com.tvd12.ezyfoxserver.command.impl.EzyAppSetupImpl in project ezyfox-server by youngmonkeys.

the class EzyAppSetupImplTest method test.

@Test
public void test() {
    EzySimpleApplication app = new EzySimpleApplication();
    EzyAppSetupImpl cmd = new EzyAppSetupImpl(app);
    cmd.setRequestController((ctx, event) -> {
    });
}
Also used : EzySimpleApplication(com.tvd12.ezyfoxserver.EzySimpleApplication) EzyAppSetupImpl(com.tvd12.ezyfoxserver.command.impl.EzyAppSetupImpl) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Aggregations

EzyAppSetupImpl (com.tvd12.ezyfoxserver.command.impl.EzyAppSetupImpl)2 EzySimpleApplication (com.tvd12.ezyfoxserver.EzySimpleApplication)1 EzyAppHandleExceptionImpl (com.tvd12.ezyfoxserver.command.impl.EzyAppHandleExceptionImpl)1 EzyAppSendResponseImpl (com.tvd12.ezyfoxserver.command.impl.EzyAppSendResponseImpl)1 BaseTest (com.tvd12.test.base.BaseTest)1 Test (org.testng.annotations.Test)1