1 15 package org.apache.tapestry.spec; 16 17 import org.apache.hivemind.ClassResolver; 18 import org.apache.tapestry.bean.BindingBeanInitializer; 19 import org.apache.tapestry.bean.ExpressionBeanInitializer; 20 import org.apache.tapestry.bean.IBeanInitializer; 21 import org.apache.tapestry.bean.MessageBeanInitializer; 22 import org.apache.tapestry.binding.BindingSource; 23 import org.apache.tapestry.coerce.ValueConverter; 24 import org.apache.tapestry.services.ExpressionEvaluator; 25 26 41 42 public class SpecFactory 43 { 44 47 48 public IApplicationSpecification createApplicationSpecification() 49 { 50 return new ApplicationSpecification(); 51 } 52 53 58 59 public ILibrarySpecification createLibrarySpecification() 60 { 61 return new LibrarySpecification(); 62 } 63 64 69 70 public IAssetSpecification createAssetSpecification() 71 { 72 return new AssetSpecification(); 73 } 74 75 80 81 public IBeanSpecification createBeanSpecification() 82 { 83 return new BeanSpecification(); 84 } 85 86 public IBindingSpecification createBindingSpecification() 87 { 88 return new BindingSpecification(); 89 } 90 91 97 98 public IListenerBindingSpecification createListenerBindingSpecification() 99 { 100 return new ListenerBindingSpecification(); 101 } 102 103 106 107 public IComponentSpecification createComponentSpecification() 108 { 109 return new ComponentSpecification(); 110 } 111 112 115 116 public IContainedComponent createContainedComponent() 117 { 118 return new ContainedComponent(); 119 } 120 121 124 125 public IParameterSpecification createParameterSpecification() 126 { 127 return new ParameterSpecification(); 128 } 129 130 135 136 public IBeanInitializer createExpressionBeanInitializer(ExpressionEvaluator evaluator) 137 { 138 return new ExpressionBeanInitializer(evaluator); 139 } 140 141 142 public BindingBeanInitializer createBindingBeanInitializer(BindingSource source) 143 { 144 return new BindingBeanInitializer(source); 145 } 146 147 152 153 public IBeanInitializer createMessageBeanInitializer() 154 { 155 return new MessageBeanInitializer(); 156 } 157 158 163 164 public IExtensionSpecification createExtensionSpecification(ClassResolver resolver, 165 ValueConverter valueConverter) 166 { 167 return new ExtensionSpecification(resolver, valueConverter); 168 } 169 170 175 176 public IPropertySpecification createPropertySpecification() 177 { 178 return new PropertySpecification(); 179 } 180 181 182 public InjectSpecification createInjectSpecification() 183 { 184 return new InjectSpecificationImpl(); 185 } 186 } | Popular Tags |