public class SingletonRepositoryFactory extends Object implements RepositoryFactory
Constructor and Description |
---|
SingletonRepositoryFactory(Repository repository)
Creates a repository factory that always returns the given repository.
|
Modifier and Type | Method and Description |
---|---|
Repository |
getRepository()
Returns the configured repository instance.
|
public SingletonRepositoryFactory(Repository repository)
repository
- singleton repository instance.public Repository getRepository()
getRepository
in interface RepositoryFactory
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.