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

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

            throw new UnknownValueException(String.format("Component %s does not contain embedded component '%s'.",
                    getCompleteId(), embeddedId), new AvailableValues("Embedded components", ids));
        }

        return embeddedElement;
    }
View Full Code Here

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

        // is too useful to pass up.

        throw new UnknownValueException(
                String.format(
                        "Unable to create a client URL for classpath resource %s: The resource path was not within an aliased path.",
                        resourcePath), new AvailableValues("Aliased paths", aliasToPathPrefix.values()));
    }
View Full Code Here

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

            {
                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

        if (result == null)
        {
            String message = String.format("Input '%s' does not identify a value from enumerated type %s.", input,
                    enumClass.getName());

            throw new UnknownValueException(message, new AvailableValues(enumClass.getName() + " enum constants",
                    stringToEnum));
        }

        return result;
    }
View Full Code Here

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

            {
                final List<String> names = classAdapter.getPropertyNames();
                final String className = activeClass.getName();
                throw new UnknownValueException(String.format(
                        "Class %s does not contain a property (or public field) named '%s'.", className, propertyName),
                        new AvailableValues("Properties (and public fields)", names));
            }
            return adapter;
        }
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.