Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 // Copyright 2004, 2005 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 //
 //     http://www.apache.org/licenses/LICENSE-2.0
 //
 // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry;
import  org.apache.hivemind.impl.MessageFormatter;

Author(s):
Howard Lewis Ship
Since:
4.0
final class TapestryMessages
    private static final MessageFormatter _formatter = new MessageFormatter(TapestryMessages.class,
            "TapestryStrings2");
    /* defeat instantiation */
    private TapestryMessages() { }
    
    static String servletInitFailure(Throwable cause)
    {
        return .format("servlet-init-failure"cause);
    }
    static String componentIsLocked(IComponent component)
    {
        return .format("component-is-locked"component.getExtendedId());
    }
    static String servletInit(String namelong elapsedToRegistrylong elapsedOverall)
    {
        return .format("servlet-init"namenew Long(elapsedToRegistry), new Long(
                elapsedOverall));
    }
    static String nonUniqueAttribute(Object newInstanceString keyObject existingInstance)
    {
        return .format("non-unique-attribute"newInstancekeyexistingInstance);
    }
    static String noPageRenderSupport(IComponent component)
    {
        return .format("no-page-render-support"component.getExtendedId());
    }
    static String noForm(IComponent component)
    {
        return .format("no-form"component.getExtendedId());
    }
    static String providedByEnhancement(String methodName)
    {
        return .format("provided-by-enhancement"methodName);
    }
    {
        return 
                .format("attempt-to-change-contained-component"component.getExtendedId());
    }
    static String attemptToChangeEventInvoker(IComponent component)
    {
        return 
                .format("attempt-to-change-event-invoker"component.getExtendedId());
    }
    
    static String componentWrongType(IComponent componentClass expectedType)
    {
        return .format("component-wrong-type"component.getExtendedId(), expectedType
                .getName());
    }
New to GrepCode? Check out our FAQ X