io.github.mmm.property.locale.PropertyFactoryLocale Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mmm-property Show documentation
Show all versions of mmm-property Show documentation
Java module providing advanced powerful properties.
The newest version!
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.property.locale;
import java.util.Locale;
import io.github.mmm.property.PropertyMetadata;
import io.github.mmm.property.ReadableProperty;
import io.github.mmm.property.WritableProperty;
import io.github.mmm.property.factory.AbstractSimplePropertyFactory;
import io.github.mmm.property.factory.PropertyFactory;
/**
* Implementation of {@link PropertyFactory} for {@link LocaleProperty}.
*
* @since 1.0.0
*/
public class PropertyFactoryLocale extends AbstractSimplePropertyFactory {
@Override
public Class getValueClass() {
return Locale.class;
}
@Override
public Class extends ReadableProperty> getReadableInterface() {
return ReadableLocaleProperty.class;
}
@Override
public Class extends WritableProperty> getWritableInterface() {
return WritableLocaleProperty.class;
}
@Override
public Class getImplementationClass() {
return LocaleProperty.class;
}
@Override
public LocaleProperty create(String name, PropertyMetadata metadata) {
return new LocaleProperty(name, metadata);
}
}