1 15 package org.apache.tapestry.services.impl; 16 17 import org.apache.hivemind.impl.BaseLocatable; 18 19 31 public class InfrastructureContribution extends BaseLocatable 32 { 33 private String _property; 34 35 private String _mode; 36 37 private DeferredObject _deferredObject; 38 39 public void setDeferredObject(DeferredObject deferredObject) 40 { 41 _deferredObject = deferredObject; 42 } 43 44 public void setValue(String value) 45 { 46 _deferredObject = new LiteralDeferredObject(value, getLocation()); 47 } 48 49 52 public Object getObject() 53 { 54 return _deferredObject.getObject(); 55 } 56 57 61 62 public String getMode() 63 { 64 return _mode; 65 } 66 67 public void setMode(String mode) 68 { 69 _mode = mode; 70 } 71 72 76 77 public String getProperty() 78 { 79 return _property; 80 } 81 82 public void setProperty(String property) 83 { 84 _property = property; 85 } 86 87 public boolean matchesMode(String mode) 88 { 89 91 if (_mode == mode) 92 return true; 93 94 96 return _mode != null && _mode.equals(mode); 97 } 98 } | Popular Tags |