Ejemplo n.º 1
0
  /** {@inheritDoc} */
  @Override
  public synchronized void stop() {
    RepositoryImpl repository = (RepositoryImpl) getComponentInstanceOfType(RepositoryImpl.class);

    try {
      repository.setState(ManageableRepository.OFFLINE);
    } catch (RepositoryException e) {
      log.error("Can not switch repository to OFFLINE", e);
    }

    super.stop();
    super.unregisterAllComponents();
  }