From: Julio G. <ju...@us...> - 2004-12-17 10:56:18
|
Update of /cvsroot/smartfrog/core/smartfrog/src/org/smartfrog/examples/arraycompound In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5266/smartfrog/src/org/smartfrog/examples/arraycompound Modified Files: components.sf ArrayCompoundImpl.java Log Message: Create new Child and create new Application changed. Index: ArrayCompoundImpl.java =================================================================== RCS file: /cvsroot/smartfrog/core/smartfrog/src/org/smartfrog/examples/arraycompound/ArrayCompoundImpl.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ArrayCompoundImpl.java 14 Dec 2004 01:50:47 -0000 1.4 --- ArrayCompoundImpl.java 17 Dec 2004 10:56:05 -0000 1.5 *************** *** 124,136 **** if (parent == null){ if (sflog().isDebugEnabled()) { - sfHostContext.sfAddAttribute(SmartFrogCoreKeys.SF_PROCESS_COMPONENT_NAME,"app-"+hostname.toString()); sflog().debug("Creating new app: "+ hostname +":'"+parent.sfCompleteName()+"'"); } ! p = this.sfCreateNewApp(newcd , sfHostContext); } else { if (sflog().isDebugEnabled()) { sflog().debug("Creating new child: "+ hostname +":'"+parent.sfCompleteName()+"'"); } ! p = this.sfCreateNewChild("ch-"+hostname, parent,newcd, sfHostContext); } } catch (Exception e) { --- 124,135 ---- if (parent == null){ if (sflog().isDebugEnabled()) { sflog().debug("Creating new app: "+ hostname +":'"+parent.sfCompleteName()+"'"); } ! p = this.sfCreateNewApp( "app-"+hostname.toString(),newcd , sfHostContext); } else { if (sflog().isDebugEnabled()) { sflog().debug("Creating new child: "+ hostname +":'"+parent.sfCompleteName()+"'"); } ! p = this.sfCreateNewChild("ch-"+hostname.toString(), parent,newcd, sfHostContext); } } catch (Exception e) { Index: components.sf =================================================================== RCS file: /cvsroot/smartfrog/core/smartfrog/src/org/smartfrog/examples/arraycompound/components.sf,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** components.sf 14 Dec 2004 01:35:25 -0000 1.2 --- components.sf 17 Dec 2004 10:56:05 -0000 1.3 *************** *** 39,42 **** --- 39,43 ---- parent LAZY THIS; //parent LAZY NULL; //To create an application instead of a child + //parent LAZY HOST localhost:sfDefault; hosts []; template extends LAZY Compound {} |