本文整理了Java中net.ymate.platform.core.YMP.get()
方法的一些代码示例,展示了YMP.get()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YMP.get()
方法的具体详情如下:
包路径:net.ymate.platform.core.YMP
类名称:YMP
方法名:get
暂无
代码示例来源:origin: suninformation/ymate-platform-v2
/**
* @return 返回默认Redis模块管理器实例对象
*/
public static IRedis get() {
if (__instance == null) {
synchronized (VERSION) {
if (__instance == null) {
__instance = YMP.get().getModule(Redis.class);
}
}
}
return __instance;
}
代码示例来源:origin: suninformation/ymate-platform-v2
public static void main(String[] args) throws Exception {
YMP.get().init();
try {
new EntityGenerator(YMP.get()).createEntityClassFiles((args != null && args.length > 0) && BlurObject.bind(args[0]).toBooleanValue());
} finally {
YMP.get().destroy();
}
}
}
代码示例来源:origin: suninformation/ymate-platform-v2
private void __doFireEvent(WebEvent.EVENT event, Object eventSource) {
if (__isInited) {
YMP.get().getEvents().fireEvent(new WebEvent(WebMVC.get(), event).addParamExtend(WebEvent.EVENT_SOURCE, eventSource));
}
}
代码示例来源:origin: suninformation/ymate-platform-v2
/**
* @return 返回默认插件框架管理器实例对象
*/
public static IPlugins get() {
if (__instance == null) {
synchronized (VERSION) {
if (__instance == null) {
__instance = YMP.get().getModule(Plugins.class);
}
}
}
return __instance;
}
代码示例来源:origin: suninformation/ymate-platform-v2
@Override
public void contextDestroyed(ServletContextEvent sce) {
__doFireEvent(WebEvent.EVENT.SERVLET_CONTEXT_DESTROYED, sce);
try {
YMP.get().destroy();
} catch (Exception ex) {
throw new RuntimeException(RuntimeUtils.unwrapThrow(ex));
}
}
代码示例来源:origin: suninformation/ymate-platform-v2
/**
* @return 返回默认日志记录器模块管理器实例对象
*/
public static ILog get() {
if (__instance == null) {
synchronized (VERSION) {
if (__instance == null) {
__instance = YMP.get().getModule(Logs.class);
}
}
}
return __instance;
}
代码示例来源:origin: suninformation/ymate-platform-v2
public EntityGenerator(YMP owner) {
this();
__owner = JDBC.get(owner == null ? YMP.get() : owner);
//
__config = new ConfigInfo(__owner.getOwner());
}
代码示例来源:origin: suninformation/ymate-platform-v2
/**
* @return 返回默认验证框架管理器实例对象
*/
public static IValidation get() {
if (__instance == null) {
synchronized (VERSION) {
if (__instance == null) {
__instance = YMP.get().getModule(Validations.class);
}
}
}
return __instance;
}
代码示例来源:origin: suninformation/ymate-platform-v2
private boolean __tryCheckAndInitLogImpl() {
if (YMP.get() == null || !YMP.get().isInited() || Logs.get() == null || !Logs.get().isInited()) {
return false;
} else if (!__inited && YMP.get() != null && YMP.get().isInited() && Logs.get() != null && Logs.get().isInited()) {
try {
__logger = Logs.get().getLogger(__loggerName).depth(5);
__inited = true;
} catch (Exception e) {
__tryGetLogSafely().warn("", RuntimeUtils.unwrapThrow(e));
}
}
return __inited;
}
代码示例来源:origin: suninformation/ymate-platform-v2
/**
* @return 返回默认数据库模块管理器实例对象
*/
public static IDatabase get() {
if (__instance == null) {
synchronized (VERSION) {
if (__instance == null) {
__instance = YMP.get().getModule(JDBC.class);
}
}
}
return __instance;
}
代码示例来源:origin: suninformation/ymate-platform-v2
private boolean __tryCheckAndInitLogImpl() {
if (YMP.get() == null || !YMP.get().isInited() || Logs.get() == null || !Logs.get().isInited()) {
return false;
} else if (!__inited && YMP.get() != null && YMP.get().isInited() && Logs.get() != null && Logs.get().isInited()) {
try {
__logger = Logs.get().getLogger(__loggerName).depth(5);
__inited = true;
} catch (Exception e) {
__tryGetLogSafely();
__simplog.warn("", RuntimeUtils.unwrapThrow(e));
}
}
return __inited;
}
代码示例来源:origin: suninformation/ymate-platform-v2
/**
* @return 返回默认缓存模块管理器实例对象
*/
public static ICaches get() {
if (__instance == null) {
synchronized (VERSION) {
if (__instance == null) {
__instance = YMP.get().getModule(Caches.class);
}
}
}
return __instance;
}
代码示例来源:origin: suninformation/ymate-platform-v2
/**
* @return 返回默认配置体系模块管理器实例对象
*/
public static IConfig get() {
if (__instance == null) {
synchronized (VERSION) {
if (__instance == null) {
__instance = YMP.get().getModule(Cfgs.class);
}
}
}
return __instance;
}
代码示例来源:origin: suninformation/ymate-platform-v2
/**
* @return 返回默认MVC框架管理器实例对象
*/
public static IWebMvc get() {
if (__instance == null) {
synchronized (VERSION) {
if (__instance == null) {
__instance = YMP.get().getModule(WebMVC.class);
}
}
}
return __instance;
}
代码示例来源:origin: suninformation/ymate-platform-v2
/**
* @return 返回默认服务模块管理器实例对象
*/
public static IServ get() {
if (__instance == null) {
synchronized (VERSION) {
if (__instance == null) {
__instance = YMP.get().getModule(Servs.class);
}
}
}
return __instance;
}
代码示例来源:origin: suninformation/ymate-platform-v2
/**
* @return 返回默认MongoDB模块管理器实例对象
*/
public static IMongo get() {
if (__instance == null) {
synchronized (VERSION) {
if (__instance == null) {
__instance = YMP.get().getModule(MongoDB.class);
}
}
}
return __instance;
}
内容来源于网络,如有侵权,请联系作者删除!