Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright 2004-2008 the original author or authors.
  * 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
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package org.springframework.binding.format;

Source for shared and commonly used Formatters.

Note: formatters are typically not thread safe as Format objects aren't thread safe. In general, you should not attempt to share formatters between threads.

Keith Donald
See also:
public interface FormatterRegistry {

Returns the default formatter installed for the given class of object.

clazz the type of object that will be formatted
the formatter
	public Formatter getFormatter(Class clazz);

Returns the formatter for the given class of object with the given id. Use this method to query a custom formatter instance for a given class of object.

id the id of the custom formatter instance; typically descriptive like "localDate"
the formatter
New to GrepCode? Check out our FAQ X