Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2013-2014 by Cisco Systems, Inc. All rights reserved.
  
  package com.cisco.oss.foundation.directory.test;
  
The default ServiceDirectoryManagerFactory for integration test on top of SD API. It is an in-memory service directory provider which stores and looks up services in local. Set configuration "service.directory.manager.factory.provider" to "test.TestServiceDirectoryManagerFactory" before invoking the ServiceDirectory.

Author(s):
zuxiang
 
 public class TestServiceDirectoryManagerFactory implements
The DefaultTestServiceDirectoryManager.
 
Constructor.
 
 	}
 	
 		this. = testManager;
 		testManager.start();
 	}

 
 	}

 
 	}

 
 	public void initialize(DirectoryServiceClientManager manager) {
 		// do nothing.
 
 	}

 
 		// Do nothing.
 	}

Get the DefaultTestServiceDirectoryManager, it is lazy initialized.

Returns:
the DefaultTestServiceDirectoryManager.
 
 		if( == null){
 			synchronized(this){
 				if( == null){
 				}
 			}
 		}
 		return ;
 	}
 
 	public void start() {
 		// Do nothing here.
 	}
 
	public void stop() {
		if( != null){
			if( instanceof Closable){
			}
		}
	}
New to GrepCode? Check out our FAQ X