本文整理匯總了Java中org.springsource.loaded.Plugins類的典型用法代碼示例。如果您正苦於以下問題:Java Plugins類的具體用法?Java Plugins怎麽用?Java Plugins使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Plugins類屬於org.springsource.loaded包,在下文中一共展示了Plugins類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: register
import org.springsource.loaded.Plugins; //導入依賴的package包/類
public static void register(ConfigurableApplicationContext ctx, ClassLoader classLoader) {
Environment env = ctx.getEnvironment();
if (env.getProperty("hotReload.enabled", Boolean.class, false)) {
jHipsterReloaderThread = new JHipsterReloaderThread(ctx);
JHipsterReloaderThread.register(jHipsterReloaderThread);
JHipsterFileSystemWatcher.register(classLoader, ctx);
Plugins.registerGlobalPlugin(new JHipsterPluginManagerReloadPlugin());
}
}
示例2: register
import org.springsource.loaded.Plugins; //導入依賴的package包/類
public static void register(ConfigurableApplicationContext ctx) {
log.trace("Registering JHipster hot reloading plugin - your Spring Beans should be automatically reloaded!");
ReloadPlugin.applicationContext = ctx;
Plugins.registerGlobalPlugin(new ReloadPlugin());
}
示例3: register
import org.springsource.loaded.Plugins; //導入依賴的package包/類
public static void register(ConfigurableApplicationContext ctx) {
log.trace("Registering JHipster hot reloading plugin");
springReloader = new SpringReloader(ctx);
jacksonReloader = new JacksonReloader(ctx);
Plugins.registerGlobalPlugin(new JHipsterPluginManagerReloadPlugin());
}