コード例 #1
0
ファイル: SecurityCacheImpl.java プロジェクト: ntamvl/aipo
  /**
   * This is the early initialization method called by the Turbine <code>Service</code> framework
   *
   * @param conf The <code>ServletConfig</code>
   * @exception throws a <code>InitializationException</code> if the service fails to initialize
   */
  public synchronized void init(ServletConfig conf) throws InitializationException {
    if (getInit()) return;

    super.init(conf);

    setInit(true);
  }
コード例 #2
0
  /**
   * Performs late initialization. Called just before the first use of the service.
   *
   * <p>If your class relies on early initialization, and the object it expects was not received,
   * you can use late initialization to throw an exception and complain.
   *
   * @exception InitializationException, if initialization of this class was not successful.
   */
  public synchronized void init() throws InitializationException {
    super.init();

    m_runDataService =
        (JetspeedRunDataService)
            TurbineServices.getInstance().getService(RunDataService.SERVICE_NAME);
  } // init
コード例 #3
0
  /**
   * This is the early initialization method called by the Turbine <code>Service</code> framework
   *
   * @param conf The <code>ServletConfig</code>
   * @exception throws a <code>InitializationException</code> if the service fails to initialize
   */
  @Override
  public synchronized void init(ServletConfig conf) throws InitializationException {
    if (getInit()) {
      return;
    }

    super.init(conf);

    this.runDataService =
        (JetspeedRunDataService)
            TurbineServices.getInstance().getService(RunDataService.SERVICE_NAME);

    setInit(true);
  }