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
  * 
  *      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.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.

Author(s):
Keith Donald
See also:
java.text.Format
public interface FormatterRegistry {

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

Parameters:
clazz the type of object that will be formatted
Returns:
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.

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