Commit 825d480d authored by R.W.Majeed's avatar R.W.Majeed
Browse files

convenient vararg constructor

parent 9f110ba1
......@@ -49,6 +49,12 @@ public class ObservationFactoryImpl implements ObservationFactory{
public ObservationFactoryImpl() {
extensions = new Hashtable<>();
}
public ObservationFactoryImpl(Extension<?>... extensions) {
this();
for( Extension<?> e : extensions ){
registerExtension(e);
}
}
@Override
public void registerExtension(Extension<?> extension) {
......
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