Exemplo n.º 1
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
   */
  public synchronized void init(ServletConfig conf) throws InitializationException {
    if (getInit()) return;

    super.init(conf);

    setInit(true);
  }
Exemplo n.º 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
Exemplo n.º 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);
  }