com.litongjava.tio.boot.TioApplication Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tio-boot Show documentation
Show all versions of tio-boot Show documentation
Java High Performance Web Development Framework
package com.litongjava.tio.boot;
import com.litongjava.context.BootConfiguration;
import com.litongjava.context.Context;
import com.litongjava.tio.boot.context.TioApplicationContext;
/**
* @author Ping E Lee
*/
public class TioApplication {
public static Context run(Class> primarySource, String[] args) {
return run(new Class>[] { primarySource }, args);
}
public static Context run(Class>[] primarySources, String[] args) {
Context context = new TioApplicationContext();
return context.run(primarySources, args);
}
public static Context run(Class> primarySource, BootConfiguration tioBootConfiguration, String[] args) {
return run(new Class>[] { primarySource }, tioBootConfiguration, args);
}
public static Context run(Class>[] primarySources, BootConfiguration tioBootConfiguration, String[] args) {
// Context context = new ;
// Context context = Aop.get(TioApplicationContext.class);
Context context = new TioApplicationContext();
return context.run(primarySources, tioBootConfiguration, args);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy