Examples of AvailableValues


Examples of org.apache.tapestry5.ioc.util.AvailableValues

    {
        Module module = serviceIdToModule.get(serviceId);

        if (module == null)
            throw new UnknownValueException(String.format("Service id '%s' is not defined by any module.", serviceId),
                    new AvailableValues("Defined service ids", serviceIdToModule));

        return module;
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

        for (List<CoercionTuple> list : sourceTypeToTuple.values())
        {
            masterList.addAll(list);
        }

        return new AvailableValues("Configured coercions", masterList);
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

    {
        JavaScriptStack stack = configuration.get(name);

        if (stack == null)
            throw new UnknownValueException(String.format("No JavaScriptStack with name '%s'.", name),
                    new AvailableValues("Configured JavaScript stacks", configuration));

        return stack;
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

        String message = String.format(
                "A component event handler method returned the value %s. Return type %s can not be handled.", value,
                ClassFabUtils.toJavaClassName(value.getClass()));

        throw new UnknownValueException(message, new AvailableValues("Configured return types", names));
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

            {
                String result = locate(pageName, pageToClassName);

                if (result == null)
                    throw new UnknownValueException(String.format("Unable to resolve '%s' to a page class name.",
                            pageName), new AvailableValues("Page names", presentableNames(pageToClassName)));

                return result;
            }
        });
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

            {
                String result = locate(componentType, componentToClassName);

                if (result == null)
                    throw new UnknownValueException(String.format("Unable to resolve '%s' to a component class name.",
                            componentType), new AvailableValues("Component types",
                            presentableNames(componentToClassName)));

                return result;
            }
        });
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

            {
                String result = locate(mixinType, mixinToClassName);

                if (result == null)
                    throw new UnknownValueException(String.format("Unable to resolve '%s' to a mixin class name.",
                            mixinType), new AvailableValues("Mixin types", presentableNames(mixinToClassName)));

                return result;
            }
        });
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

            {
                String result = locate(pageName, pageNameToCanonicalPageName);

                if (result == null)
                    throw new UnknownValueException(String.format("Unable to resolve '%s' to a known page name.",
                            pageName), new AvailableValues("Page names", presentableNames(pageNameToCanonicalPageName)));

                return result;
            }
        });
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

        PropertyModel propertyModel = properties.get(propertyName);

        if (propertyModel == null)
            throw new UnknownValueException(String.format(
                    "Bean editor model for %s does not contain a property named '%s'.", beanType.getName(),
                    propertyName), new AvailableValues("Defined properties", propertyNames));

        return propertyModel;
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

            ids.add(model.getId());
        }

        throw new UnknownValueException(String.format(
                "Bean editor model for %s does not contain a property with id '%s'.", beanType.getName(), propertyId),
                new AvailableValues("Defined property ids", ids));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.