io.github.honoriuss.blossom.BlossomFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tracking-blossom Show documentation
Show all versions of tracking-blossom Show documentation
Track your app nice and convenient
package io.github.honoriuss.blossom;
import io.github.honoriuss.blossom.interfaces.*;
import jakarta.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;
abstract class BlossomFactory {
public static ITrackingHandler getDefaultTracking(ITrackingWriter trackingWriter) {
return new BlossomHandlerImpl(trackingWriter);
}
public static ITrackingObjectMapper getDefaultObjectMapper(ITrackingParameterRegistry parameterRegistry) {
return new BlossomObjectMapperImpl(parameterRegistry);
}
public static ITrackingWriter getDefaultWriter() {
return new BlossomWriterImpl();
}
public static ITrackingParameterRegistry getDefaultParameterRegistry(List parameterProviderList) {
return new BlossomParameterRegistryImpl(parameterProviderList);
}
public static ITrackingFilter getDefaultFilter(String sessionIdHeaderName, String timestampName) {
return new BlossomFilterImpl(sessionIdHeaderName, timestampName);
}
public static ITrackingParameterProvider getOptionalHeaderParameterProvider(Map headers, HttpServletRequest request) {
return new BlossomOptionalParameterProviderImpl(headers, request);
}
public static ITrackingAppContextHandler getDefaultAppContextHandler() {
return new BlossomAppContextHandlerImpl();
}
}