All Downloads are FREE. Search and download functionalities are using the official Maven repository.

se.l4.vibe.internal.builder.ProbeBuilderImpl Maven / Gradle / Ivy

There is a newer version: 0.4.0
Show newest version
package se.l4.vibe.internal.builder;

import se.l4.vibe.backend.VibeBackend;
import se.l4.vibe.builder.ProbeBuilder;
import se.l4.vibe.probes.Probe;

/**
 * Exporter for probes.
 * 
 * @author Andreas Holstenson
 *
 * @param 
 */
public class ProbeBuilderImpl
	extends AbstractBuilder>
	implements ProbeBuilder
{
	private final VibeBackend backend;
	private final Probe probe;

	public ProbeBuilderImpl(VibeBackend backend, Probe probe)
	{
		this.backend = backend;
		this.probe = probe;
	}
	
	@Override
	public Probe export()
	{
		verify();
		
		backend.export(path, probe);
		
		return probe;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy