org.richfaces.cdk.apt.processors
Class AttributesProcessorImpl

java.lang.Object
  extended by org.richfaces.cdk.apt.processors.AttributesProcessorImpl
All Implemented Interfaces:
AttributesProcessor

public class AttributesProcessorImpl
extends java.lang.Object
implements AttributesProcessor

Author:
asmirnov@exadel.com

Constructor Summary
AttributesProcessorImpl(DescriptionProcessor descriptionProcessor, com.google.inject.Provider<SourceUtils> utilsProvider, FragmentParser parser)
          

 
Method Summary
protected  void processAttribute(SourceUtils.BeanProperty beanProperty, PropertyBase attribute)
           
 void processType(BeanModelBase component, javax.lang.model.element.TypeElement element)
          

Process all bean properties associated with type element.

 void processXmlFragment(BeanModelBase component, java.lang.String... attributesConfig)
          

Process attributes defined by the faces-config fragment.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributesProcessorImpl

@Inject
public AttributesProcessorImpl(DescriptionProcessor descriptionProcessor,
                                      com.google.inject.Provider<SourceUtils> utilsProvider,
                                      FragmentParser parser)

Parameters:
descriptionProcessor -
utilsProvider -
parser -
Method Detail

processAttribute

protected void processAttribute(SourceUtils.BeanProperty beanProperty,
                                PropertyBase attribute)

processType

public void processType(BeanModelBase component,
                        javax.lang.model.element.TypeElement element)
                 throws CdkException
Description copied from interface: 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

Specified by:
processType in interface AttributesProcessor
Throws:
CdkException

processXmlFragment

public void processXmlFragment(BeanModelBase component,
                               java.lang.String... attributesConfig)
Description copied from interface: AttributesProcessor

Process attributes defined by the faces-config fragment.

Specified by:
processXmlFragment in interface AttributesProcessor
attributesConfig - relative URL to the fragment file.


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.