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.impl;
  
It is the default ServiceDirectoryManagerFactory to access remote ServiceDirectory server node. When there is no other ServiceDirectoryManagerFactory provider assigned, SD API will instantialize this class to provide ServiceDirectory services.

Author(s):
zuxiang
 
 public class DefaultServiceDirectoryManagerFactory implements
RegistrationManager, it is lazy initialized.
 
The LookupManager, it is lazy initialized.
 
The DirectoryServiceClientManager.
 
Default constructor.
 
 	}

Get RegistrationManager. It is thread safe in lazy initializing.

Returns:
the RegistrationManager implementation instance.
 
 		if( == null){
 			synchronized(this){
 				if( == null){
 					registration.start();
 					 = registration;
 				}
 			}
 		}
 	}

get LookupManager It is thread safe in lazy initializing.

Returns:
the LookupManager implementation instance.
 
 		if( == null){
 			synchronized(this){
 				if( == null){
 					lookup.start();
 					 = lookup;
 				}
 			}
 		}
 		return ;
 	}

 
 	public void initialize(DirectoryServiceClientManager manager) {
 		this. = manager;
 	}

get the DirectoryServiceClientManager to access remote directory server.

Returns:
the DirectoryServiceClientManager.
	}

		// TODO Auto-generated method stub
	}
	public void start() {
		// do nothing now.
	}
	public void stop() {
		if( != null){
		}
		if( != null){
		}
	}
New to GrepCode? Check out our FAQ X