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:
parent
b3254d1159
commit
8e40697047
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue