当前位置: 首页>>代码示例>>Java>>正文


Java Injector.forgetAll方法代码示例

本文整理汇总了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();
}
 
开发者ID:Naoghuman,项目名称:ABC-List,代码行数:21,代码来源:TestdataApplication.java

示例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();
}
 
开发者ID:Naoghuman,项目名称:ABC-List,代码行数:22,代码来源:StartApplication.java

示例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();
}
 
开发者ID:Naoghuman,项目名称:Project-Templates,代码行数:21,代码来源:StartApplication.java

示例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();
}
 
开发者ID:Naoghuman,项目名称:Incubator,代码行数:21,代码来源:StartApplication.java

示例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();
}
 
开发者ID:Naoghuman,项目名称:Incubator,代码行数:21,代码来源:StartApplication.java

示例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);
  }
}
 
开发者ID:comtel2000,项目名称:jfxvnc,代码行数:12,代码来源:VncClientApp.java

示例7: stop

import com.airhacks.afterburner.injection.Injector; //导入方法依赖的package包/类
@Override
public void stop() throws Exception {
    Injector.forgetAll();
}
 
开发者ID:wartab,项目名称:gen7-iv-calculator,代码行数:5,代码来源:App.java

示例8: end

import com.airhacks.afterburner.injection.Injector; //导入方法依赖的package包/类
public static void end() {
  Injector.forgetAll();
  // stage.close();
}
 
开发者ID:comtel2000,项目名称:jfxvnc,代码行数:5,代码来源:AboutViewTest.java

示例9: stop

import com.airhacks.afterburner.injection.Injector; //导入方法依赖的package包/类
@Override
public void stop() {
    Injector.forgetAll();
}
 
开发者ID:ennerf,项目名称:HdrHistogramVisualizer,代码行数:5,代码来源:Visualizer.java


注:本文中的com.airhacks.afterburner.injection.Injector.forgetAll方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。