1 15 package org.apache.tapestry.record; 16 17 import org.apache.hivemind.impl.MessageFormatter; 18 import org.apache.tapestry.IComponent; 19 20 24 class RecordMessages 25 { 26 protected static MessageFormatter _formatter = new MessageFormatter(RecordMessages.class, 27 "RecordStrings"); 28 29 static String unknownPersistenceStrategy(String name) 30 { 31 return _formatter.format("unknown-persistence-strategy", name); 32 } 33 34 static String missingPropertySpecification(String propertyName, IComponent component) 35 { 36 return _formatter.format("missing-property-specification", propertyName, component 37 .getExtendedId(), component.getSpecification().getSpecificationLocation()); 38 } 39 40 static String recorderLocked(String propertyName, IComponent component) 41 { 42 return _formatter.format("recorder-locked", propertyName, component.getExtendedId()); 43 } 44 45 static String decodeFailure(Throwable cause) 46 { 47 return _formatter.format("decode-failure", cause); 48 } 49 50 static String encodeFailure(Throwable cause) 51 { 52 return _formatter.format("encode-failure", cause); 53 } 54 55 static String unknownPrefix(String prefix) 56 { 57 return _formatter.format("unknown-prefix", prefix); 58 } 59 } | Popular Tags |