Search in sources :

Example 6 with RepositoryRegistryEvent

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));
}
Also used : RepositoryRegistryEvent(org.apache.archiva.repository.event.RepositoryRegistryEvent) PreDestroy(javax.annotation.PreDestroy)

Example 7 with RepositoryRegistryEvent

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));
    }
}
Also used : RepositoryRegistryEvent(org.apache.archiva.repository.event.RepositoryRegistryEvent)

Example 8 with RepositoryRegistryEvent

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));
    }
}
Also used : RepositoryRegistryEvent(org.apache.archiva.repository.event.RepositoryRegistryEvent)

Aggregations

RepositoryRegistryEvent (org.apache.archiva.repository.event.RepositoryRegistryEvent)8 PostConstruct (javax.annotation.PostConstruct)1 PreDestroy (javax.annotation.PreDestroy)1 RepositoryProvider (org.apache.archiva.repository.RepositoryProvider)1