本文整理汇总了Java中com.airhacks.afterburner.injection.Injector.forgetAll方法的典型用法代码示例。如果您正苦于以下问题:Java Injector.forgetAll方法的具体用法?Java Injector.forgetAll怎么用?Java Injector.forgetAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.airhacks.afterburner.injection.Injector
的用法示例。
在下文中一共展示了Injector.forgetAll方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCloseRequest
import com.airhacks.afterburner.injection.Injector; //导入方法依赖的package包/类
private void onCloseRequest() {
final char borderSign = Properties.getPropertyForTestdataApplication(KEY__TESTDATA_APPLICATION__BORDER_SIGN).charAt(0);
final String message = Properties.getPropertyForTestdataApplication(KEY__TESTDATA_APPLICATION__MESSAGE_STOP);
final String title = Properties.getPropertyForTestdataApplication(KEY__TESTDATA_APPLICATION__TITLE);
LoggerFacade.getDefault().message(borderSign, 80, message + title);
try {
TestdataFacade.getDefault().shutdown();
} catch (InterruptedException e) {
}
Injector.forgetAll();
DatabaseFacade.getDefault().shutdown();
final PauseTransition pt = new PauseTransition(LITTLE_DELAY__DURATION_125);
pt.setOnFinished((ActionEvent event) -> {
Platform.exit();
});
pt.playFromStart();
}
示例2: onCloseRequest
import com.airhacks.afterburner.injection.Injector; //导入方法依赖的package包/类
private void onCloseRequest() {
// afterburner.fx
Injector.forgetAll();
// Database
DatabaseFacade.getDefault().shutdown();
// Message
final char borderSign = Properties.getPropertyForApplication(KEY__APPLICATION__BORDER_SIGN).charAt(0);
final String message = Properties.getPropertyForApplication(KEY__APPLICATION__MESSAGE_STOP);
final String title = Properties.getPropertyForApplication(KEY__APPLICATION__TITLE)
+ Properties.getPropertyForApplication(KEY__APPLICATION__VERSION);
LoggerFacade.getDefault().message(borderSign, 80, String.format(message, title));
// Timer
final PauseTransition pt = new PauseTransition(LITTLE_DELAY__DURATION_125);
pt.setOnFinished((ActionEvent event) -> {
Platform.exit();
});
pt.playFromStart();
}
示例3: onCloseRequest
import com.airhacks.afterburner.injection.Injector; //导入方法依赖的package包/类
private void onCloseRequest() {
// afterburner.fx
Injector.forgetAll();
// Database
DatabaseFacade.getDefault().shutdown();
// Message
final char borderSign = this.getProperty(KEY__APPLICATION__BORDER_SIGN).charAt(0);
final String message = this.getProperty(KEY__APPLICATION__MESSAGE_STOP);
final String title = this.getProperty(KEY__APPLICATION__TITLE) + this.getProperty(KEY__APPLICATION__VERSION);
LoggerFacade.getDefault().message(borderSign, 80, String.format(message, title));
// Timer
final PauseTransition pt = new PauseTransition(DURATION__125);
pt.setOnFinished((ActionEvent event) -> {
Platform.exit();
});
pt.playFromStart();
}
示例4: onCloseRequest
import com.airhacks.afterburner.injection.Injector; //导入方法依赖的package包/类
private void onCloseRequest() {
// afterburner.fx
Injector.forgetAll();
// Database
DatabaseFacade.INSTANCE.shutdown();
// Message
final char borderSign = this.getProperty(KEY__APPLICATION__BORDER_SIGN).charAt(0);
final String message = this.getProperty(KEY__APPLICATION__MESSAGE_STOP);
final String title = this.getProperty(KEY__APPLICATION__TITLE);
LoggerFacade.INSTANCE.message(borderSign, 80, String.format(message, title));
// Timer
final PauseTransition pt = new PauseTransition(DURATION__125);
pt.setOnFinished((ActionEvent event) -> {
Platform.exit();
});
pt.playFromStart();
}
示例5: onCloseRequest
import com.airhacks.afterburner.injection.Injector; //导入方法依赖的package包/类
private void onCloseRequest() {
// afterburner.fx
Injector.forgetAll();
// Database
DatabaseFacade.INSTANCE.shutdown();
// Message
final char borderSign = this.getProperty(KEY__APPLICATION__BORDER_SIGN).charAt(0);
final String message = this.getProperty(KEY__APPLICATION__MESSAGE_STOP);
final String title = this.getProperty(KEY__APPLICATION__TITLE) + this.getProperty(KEY__APPLICATION__VERSION);
LoggerFacade.INSTANCE.message(borderSign, 80, String.format(message, title));
// Timer
final PauseTransition pt = new PauseTransition(DURATION__125);
pt.setOnFinished((ActionEvent event) -> {
Platform.exit();
});
pt.playFromStart();
}
示例6: restart
import com.airhacks.afterburner.injection.Injector; //导入方法依赖的package包/类
private void restart() {
stageRef.close();
try {
sceneWidthProperty.set(stageRef.getScene().getWidth());
sceneHeightProperty.set(stageRef.getScene().getHeight());
Injector.forgetAll();
start(new Stage());
} catch (Exception e) {
throw new RuntimeException("Failed to restart " + getClass().getName(), e);
}
}
示例7: stop
import com.airhacks.afterburner.injection.Injector; //导入方法依赖的package包/类
@Override
public void stop() throws Exception {
Injector.forgetAll();
}
示例8: end
import com.airhacks.afterburner.injection.Injector; //导入方法依赖的package包/类
public static void end() {
Injector.forgetAll();
// stage.close();
}
示例9: stop
import com.airhacks.afterburner.injection.Injector; //导入方法依赖的package包/类
@Override
public void stop() {
Injector.forgetAll();
}