Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package info.kwarc.sally4.registration.models;
 
 
public class ClientManagerModel implements ClientManager  {
	private Factory factory;
	public ClientManagerModel(Factory factory) {
		 = LoggerFactory.getLogger(getClass());
		this. = factory;
	}
	String generateUUID(String doc_queue) {
		//"/queue/sally_doc_"+UUID.randomUUID().toString()
		return "sally_doc_"+doc_queue;
	}
		.info("Registering "+doc.getListenQueue());
		String docQueue = generateUUID(doc.getListenQueue());
		response.setSendQueue(docQueue);
			try {
				InstanceCreator.init()
					.setProperty("docQueue"doc.getListenQueue())
					.setProperty("environmentid"doc.getEnvironmentID())
					.setProperty("docStateQueue"docQueue)
					.setProperty("schemas"doc.getSchemas().toArray(new String[0]))
catch (UnacceptableConfiguration e) {
catch (MissingHandlerException e) {
catch (ConfigurationException e) {
			}
		return response;
	}
New to GrepCode? Check out our FAQ X