static String unknownScope(String name) { return MESSAGES.format("unknown-scope", name); }
static String errorBuildingService(String serviceId, ServiceDef serviceDef, Throwable cause) { return MESSAGES.format("error-building-service", serviceId, serviceDef, cause); }
static String bindMethodMustBeStatic(String methodId) { return MESSAGES.format("bind-method-must-be-static", methodId); }
static String errorInBindMethod(String methodId, Throwable cause) { return MESSAGES.format("error-in-bind-method", methodId, cause); }
static String noProxyProvider(String serviceId) { return MESSAGES.format("no-proxy-provider", serviceId); }
static String encodingTypeAlreadySet(String formId, String requiredEncType, String existingEncType) { return MESSAGES.format("enctype-already-set", formId, requiredEncType, existingEncType); } }
static String badMarkerAnnotation(Class annotationClass) { return MESSAGES.format("bad-marker-annotation", annotationClass.getName()); } }
static String noServiceMatchesType(Class serviceInterface) { return MESSAGES.format("no-service-matches-type", serviceInterface.getName()); }
static String noAutobuildConstructor(Class clazz) { return MESSAGES.format("no-autobuild-constructor", clazz.getName()); }
static String contributionWrongKeyType(String serviceId, Class actualClass, Class expectedClass) { return MESSAGES.format("contribution-wrong-key-type", serviceId, actualClass.getName(), expectedClass.getName()); }
static String serviceWrongInterface(String serviceId, Class actualInterface, Class requestedInterface) { return MESSAGES.format("service-wrong-interface", serviceId, actualInterface.getName(), requestedInterface.getName()); }
static String manyServiceMatches(Class serviceInterface, List<String> ids) { StringBuilder buffer = new StringBuilder(); for (int i = 0; i < ids.size(); i++) { if (i > 0) buffer.append(", "); buffer.append(ids.get(i)); } return MESSAGES.format("many-service-matches", serviceInterface.getName(), ids.size(), buffer.toString()); }
static String decoratorReturnedWrongType(Method method, String serviceId, Object returned, Class serviceInterface) { return MESSAGES.format("decorator-returned-wrong-type", asString(method), serviceId, returned, serviceInterface.getName()); }
static String noContributionParameter(Method method) { return MESSAGES.format("no-contribution-parameter", asString(method)); }
static String contributionWrongReturnType(Method method) { return MESSAGES.format("contribution-wrong-return-type", asString(method), PlasticUtils.toTypeName(method.getReturnType())); }
static String noServicesMatchMarker(Class objectType, List<Class> markers) { return MESSAGES.format("no-services-match-marker", PlasticUtils.toTypeName(objectType), toJavaClassNames(markers)); }
static String contributionForUnqualifiedService(ContributionDef2 cd) { return MESSAGES.format("contribution-for-unqualified-service", cd, cd.getServiceInterface(), cd.getMarkers()); } }
static String manyServicesMatchMarker(Class objectType, List<Class> markers, Collection<ServiceDef2> matchingServices) { return MESSAGES.format("many-services-match-marker", PlasticUtils.toTypeName(objectType), toJavaClassNames(markers), InternalUtils.joinSorted(matchingServices)); }
static String missingParameters(List<String> parameters, ComponentPageElement element) { return MESSAGES.format("missing-parameters", InternalUtils.joinSorted(parameters), element .getComponentResources().getComponentModel().getComponentClassName()); }
static String originalChildComponent(ComponentPageElement container, String childId, Location originalLocation) { return MESSAGES.format("original-child-component", container.getCompleteId(), childId, originalLocation .getResource().getPath(), originalLocation.getLine()); }