org.springframework.data.repository.init
Class RepositoriesPopulatedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.data.repository.init.RepositoriesPopulatedEvent
- All Implemented Interfaces:
- Serializable
public class RepositoriesPopulatedEvent
- extends ApplicationEvent
ApplicationEvent
being thrown after a RepositoryPopulator
has finished populating the
Repositories
available in the ApplicationContext
.
- Author:
- Oliver Gierke
- See Also:
- Serialized Form
RepositoriesPopulatedEvent
public RepositoriesPopulatedEvent(RepositoryPopulator populator,
Repositories repositories)
- Creates a new
RepositoriesPopulatedEvent
using the given RepositoryPopulator
and
Repositories
.
- Parameters:
populator
- the RepositoryPopulator
that threw the event, must not be null.repositories
- the Repositories
that were populated, must not be null.
getSource
public RepositoryPopulator getSource()
- Overrides:
getSource
in class EventObject
getRepositories
public Repositories getRepositories()
- Returns the
Repositories
that were populated.
- Returns:
- the repositories will never be null.
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.