View Javadoc

1   /*
2    * Copyright (c) 2005, The K-Wf Grid Consortium
3    * Fraunhofer Institute for Computer Architecture and Software Technology
4    * See http://www.kwfgrid.eu and http://www.first.fraunhofer.de for more details.
5    */
6   package net.kwfgrid.gworkflowdl.protocol.structure;
7   
8   import net.kwfgrid.gworkflowdl.protocol.IMethodCallStrategy;
9   import net.kwfgrid.gworkflowdl.protocol.Protocol;
10  
11  /***
12     Implementation of IRootObject to be used for independently created child objects.. Null-object design pattern.
13   */
14  public class NullParent extends AbstractRootObject {
15      public static final String ID = "NullParent";
16  
17      /***
18         Constructor.
19         The object will use static value "ID" as ID.
20       */
21      public NullParent() {
22  	super(ID);
23      }
24  
25      /***
26         Get the method call strategy.
27         @return <code>Protocol.getDefaultMethodCallStrategy()</code>.
28       */
29      public IMethodCallStrategy getMethodCallStrategy() {
30  	return Protocol.getDefaultMethodCallStrategy();
31      }
32  }