Expose repository change event constructors

Repository implementations outside of .lib need to be able to
create these events and deliver them to listening application code.

Expose and document the constructors so that they are visible when
we move FileRepository into storage.file.FileRepository.

Change-Id: I7fb6e8f4f5fdab683c5ebb5267673aa6d5b560bb
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce 2010-06-22 16:45:26 -07:00
parent b3254d1159
commit 8e40697047
2 changed files with 14 additions and 2 deletions

View File

@ -50,7 +50,13 @@
* Currently only a reference to the repository is passed.
*/
public class IndexChangedEvent extends RepositoryChangedEvent {
IndexChangedEvent(final Repository repository) {
/**
* Create an event describing index changes in a repository.
*
* @param repository
* the repository whose index (DirCache) recently changed.
*/
public IndexChangedEvent(final Repository repository) {
super(repository);
}

View File

@ -50,7 +50,13 @@
* Currently only a reference to the repository is passed.
*/
public class RefsChangedEvent extends RepositoryChangedEvent {
RefsChangedEvent(final Repository repository) {
/**
* Create an event describing reference changes in a repository.
*
* @param repository
* the repository whose references recently changed.
*/
public RefsChangedEvent(final Repository repository) {
super(repository);
}