public class AttributesProcessorImpl extends Object implements AttributesProcessor
| Constructor and Description |
|---|
AttributesProcessorImpl(DescriptionProcessor descriptionProcessor,
com.google.inject.Provider<SourceUtils> utilsProvider,
FragmentParser parser)
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
processAttribute(SourceUtils.BeanProperty beanProperty,
PropertyBase attribute) |
void |
processType(BeanModelBase component,
TypeElement element)
Process all bean properties associated with type element. |
void |
processXmlFragment(BeanModelBase component,
String... attributesConfig)
Process attributes defined by the faces-config fragment. |
@Inject public AttributesProcessorImpl(DescriptionProcessor descriptionProcessor, com.google.inject.Provider<SourceUtils> utilsProvider, FragmentParser parser)
descriptionProcessor - utilsProvider - parser - protected void processAttribute(SourceUtils.BeanProperty beanProperty, PropertyBase attribute)
public void processType(BeanModelBase component, TypeElement element) throws CdkException
AttributesProcessor
Process all bean properties associated with type element. Recursively visit all supertypes and interfaces. For each type,
tries to read xml fragment with same name as class or interface with ".xml" suffix, then collect all bean properties
marked by the Attribute annotation
processType in interface AttributesProcessorCdkExceptionpublic void processXmlFragment(BeanModelBase component, String... attributesConfig)
AttributesProcessorProcess attributes defined by the faces-config fragment.
processXmlFragment in interface AttributesProcessorattributesConfig - relative URL to the fragment file.Copyright © 2014 JBoss by Red Hat. All Rights Reserved.