![JAR search and dependency download from the Maven repository](/logo.png)
com.shedhack.thread.context.adapter.ListThreadContextAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of thread-context-handler Show documentation
Show all versions of thread-context-handler Show documentation
Context enabler, for helping with debugging/logging
package com.shedhack.thread.context.adapter;
import com.shedhack.thread.context.handler.ListThreadContextHandler;
import java.util.Arrays;
import java.util.Date;
import java.util.Map;
/**
* Created by imamchishty on 15/03/2016.
*/
public class ListThreadContextAdapter implements ThreadContextAdapter {
public ListThreadContextAdapter(ListThreadContextHandler handler) {
this.handler = handler;
}
private ListThreadContextHandler handler;
/**
* {@inheritDoc}
*/
public void setContext(String id, Date date, String method, Map context, Map params) {
handler.setThreadContext(Arrays.asList(id, date.toString(),
method, context.toString(), params.toString()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy