@ApplicationScoped @Named(value="dataFormatterRegistry") public class DataFormatterRegistry extends Object
Modifier and Type | Field and Description |
---|---|
protected javax.enterprise.inject.Instance<DataPropertyFormatter> |
dataPropertyFormatters |
protected DataPropertyFormatter |
defaultPropertyFormatter
The default general-purpose property formatter
|
Constructor and Description |
---|
DataFormatterRegistry() |
Modifier and Type | Method and Description |
---|---|
DataPropertyFormatter |
getPropertyFormatter(String propId) |
protected void |
init() |
static DataFormatterRegistry |
lookup()
GoF singleton pattern.
|
protected DataPropertyFormatter defaultPropertyFormatter
@Inject protected javax.enterprise.inject.Instance<DataPropertyFormatter> dataPropertyFormatters
public static DataFormatterRegistry lookup()
@PostConstruct protected void init()
public DataPropertyFormatter getPropertyFormatter(String propId)
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.