use of org.apache.archiva.repository.event.RepositoryRegistryEvent in project archiva by apache.
the class ArchivaRepositoryRegistry method destroy.
@PreDestroy
public void destroy() {
managedRepositoryHandler.close();
remoteRepositoryHandler.close();
groupHandler.close();
pushEvent(new RepositoryRegistryEvent(RepositoryRegistryEvent.DESTROYED, this));
}
use of org.apache.archiva.repository.event.RepositoryRegistryEvent in project archiva by apache.
the class ArchivaRepositoryRegistry method initializeRepositoryGroups.
private void initializeRepositoryGroups() {
if (this.groupHandler != null) {
this.groupHandler.initializeFromConfig();
this.groups_initalized.set(true);
pushEvent(new RepositoryRegistryEvent(RepositoryRegistryEvent.GROUPS_INITIALIZED, this));
}
}
use of org.apache.archiva.repository.event.RepositoryRegistryEvent in project archiva by apache.
the class ArchivaRepositoryRegistry method registerRemoteRepositoryHandler.
public void registerRemoteRepositoryHandler(RepositoryHandler<RemoteRepository, RemoteRepositoryConfiguration> remoteRepositoryHandler) {
this.remoteRepositoryHandler = remoteRepositoryHandler;
doRegister(remoteRepositoryHandler);
initializeRemoteRepositories();
if (managed_initialized.get() && remote_initialized.get() && groups_initalized.get()) {
pushEvent(new RepositoryRegistryEvent(RepositoryRegistryEvent.INITIALIZED, this));
}
}
Aggregations