Class DescriptorSourceFactory
- java.lang.Object
-
- org.torproject.metrics.onionoo.updater.DescriptorSourceFactory
-
public class DescriptorSourceFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DescriptorSourceFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DescriptorSource
getDescriptorSource()
Returns the singleton descriptor source instance that gets created upon first invocation of this method.static void
setDescriptorSource(DescriptorSource descriptorSource)
Sets a custom singleton descriptor source instance that will be returned bygetDescriptorSource()
rather than creating an instance upon first invocation.
-
-
-
Method Detail
-
setDescriptorSource
public static void setDescriptorSource(DescriptorSource descriptorSource)
Sets a custom singleton descriptor source instance that will be returned bygetDescriptorSource()
rather than creating an instance upon first invocation.
-
getDescriptorSource
public static DescriptorSource getDescriptorSource()
Returns the singleton descriptor source instance that gets created upon first invocation of this method.
-
-