Commit e1e5c817 authored by Jeremy Whiting's avatar Jeremy Whiting

core: Add method to create IndividualAggregator passing in a BackendStore.

parent b5e9f24c
......@@ -282,10 +282,28 @@ public class Folks.IndividualAggregator : Object
* }}}
*/
public IndividualAggregator ()
{
Object ();
}
{
Object ();
this._backend_store = BackendStore.dup ();
}
/**
* Create a new IndividualAggregator with a custom {@link BackendStore}.
*
* This behaves the same as the default constructor for
* {@link IndivdiualAggregator}, but uses the given {@link BackendStore}
* rather than the default one.
*
* @param store the {@link BackendStore} to use instead of the default one.
*
* @since UNRELEASED
*/
public IndividualAggregator.with_backend_store (BackendStore store)
{
Object ();
this._backend_store = store;
}
construct
{
this._stores = new HashMap<string, PersonaStore> ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment