openamf/src/java/org/openamf/config ServiceConfig.java,1.4,1.5

[email protected]
Newsgroups gmane.comp.java.openamf.cvs
Message-ID <[email protected]>
Update of /cvsroot/openamf/openamf/src/java/org/openamf/config
In directory sc8-pr-cvs1:/tmp/cvs-serv7226/src/java/org/openamf/config

Modified Files:
	ServiceConfig.java 
Log Message:
don't print out info untill config is set

Index: ServiceConfig.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/config/ServiceConfig.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ServiceConfig.java	30 Apr 2003 15:45:10 -0000	1.4
--- ServiceConfig.java	1 May 2003 00:58:46 -0000	1.5
***************
*** 47,50 ****
--- 47,54 ----
  	public ServiceInvokerConfig getServiceInvokerConfig() {
  		
+ 		if (config == null) {
+ 			return null;
+ 		}
+ 		
  		if (serviceInvokerConfig == null) {
  			serviceInvokerConfig = config.getServiceInvokerConfig(serviceInvokerRef);
***************
*** 59,62 ****
--- 63,67 ----
  
  	public void setConfig(Config config) {
+ 		log.debug("got config: " + config);
  		this.config = config;
  	}
***************
*** 68,71 ****
--- 73,80 ----
  	public Iterator getStateBeanConfigs() {
  		
+ 		if (config == null) {
+ 			return null;
+ 		}
+ 		
  		if (!stateBeanConfigsLoaded) {
  			for (Iterator iterator = stateBeanRefs.iterator(); iterator.hasNext();) {
***************
*** 88,91 ****
--- 97,104 ----
  	
  	public String toString() {
+ 		
+ 		if (config == null) {
+ 			return super.toString();
+ 		}
  		
  		StringBuffer sb = new StringBuffer();




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.