org.jboss.kernel.plugins.annotations
Class InstallFieldCallbackAnnotationPlugin

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.kernel.plugins.annotations.BaseMetaDataAnnotationPlugin<T,C>
          extended by org.jboss.kernel.plugins.annotations.AbstractAnnotationPlugin<T,C>
              extended by org.jboss.kernel.plugins.annotations.CallbackAnnotationPlugin<org.jboss.reflect.spi.FieldInfo,Install>
                  extended by org.jboss.kernel.plugins.annotations.InstallFieldCallbackAnnotationPlugin
All Implemented Interfaces:
Cloneable, AnnotationPlugin<org.jboss.reflect.spi.FieldInfo,Install>, MetaDataAnnotationPlugin<org.jboss.reflect.spi.FieldInfo,Install>, org.jboss.util.JBossInterface

public class InstallFieldCallbackAnnotationPlugin
extends CallbackAnnotationPlugin<org.jboss.reflect.spi.FieldInfo,Install>

Install field callback annotation plugin.

Author:
Ales Justin

Field Summary
static InstallFieldCallbackAnnotationPlugin INSTANCE
           
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
protected InstallFieldCallbackAnnotationPlugin()
           
 
Method Summary
protected  void applyInfo(AbstractCallbackMetaData callback, org.jboss.reflect.spi.FieldInfo info)
          Apply additional information.
protected  AbstractCallbackMetaData createCallback(org.jboss.reflect.spi.FieldInfo info, Install annotation)
          Create new CallbackMetaData instance.
protected  List<CallbackMetaData> getCallbacks(AbstractBeanMetaData beanMetaData)
          Get the callback metadatas.
protected  Set<CallbackItem<?>> getCallbacks(DependencyInfo dependency)
          Get the callbacks.
protected  boolean isElementTypeSupported(ElementType type)
          Is type supported by plugin.
protected  boolean isEqual(org.jboss.reflect.spi.FieldInfo info, CallbackItem<?> ci)
          Does callback item corespond to info instance.
 
Methods inherited from class org.jboss.kernel.plugins.annotations.CallbackAnnotationPlugin
internalApplyAnnotation, isMetaDataAlreadyPresent
 
Methods inherited from class org.jboss.kernel.plugins.annotations.AbstractAnnotationPlugin
applyAnnotation, checkIfNotAbstractBeanMetaDataSpecific, cleanAnnotation, internalApplyAnnotation, internalApplyAnnotation, internalCleanAnnotation
 
Methods inherited from class org.jboss.kernel.plugins.annotations.BaseMetaDataAnnotationPlugin
applyAnnotation, getAnnotation, getSupportedTypes, isAttributePresent, isAttributePresent, isCleanup, isCleanupOnly, isMetaDataAlreadyPresent, toShortString, toString
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.kernel.plugins.annotations.MetaDataAnnotationPlugin
applyAnnotation, getAnnotation, getSupportedTypes
 

Field Detail

INSTANCE

public static final InstallFieldCallbackAnnotationPlugin INSTANCE
Constructor Detail

InstallFieldCallbackAnnotationPlugin

protected InstallFieldCallbackAnnotationPlugin()
Method Detail

isElementTypeSupported

protected boolean isElementTypeSupported(ElementType type)
Description copied from class: BaseMetaDataAnnotationPlugin
Is type supported by plugin.

Overrides:
isElementTypeSupported in class CallbackAnnotationPlugin<org.jboss.reflect.spi.FieldInfo,Install>
Parameters:
type - the annotation element type
Returns:
true if element supported

isEqual

protected boolean isEqual(org.jboss.reflect.spi.FieldInfo info,
                          CallbackItem<?> ci)
Description copied from class: CallbackAnnotationPlugin
Does callback item corespond to info instance.

Specified by:
isEqual in class CallbackAnnotationPlugin<org.jboss.reflect.spi.FieldInfo,Install>
Parameters:
info - the info
ci - the callback item
Returns:
true if callback matches info

applyInfo

protected void applyInfo(AbstractCallbackMetaData callback,
                         org.jboss.reflect.spi.FieldInfo info)
Description copied from class: CallbackAnnotationPlugin
Apply additional information.

Specified by:
applyInfo in class CallbackAnnotationPlugin<org.jboss.reflect.spi.FieldInfo,Install>
Parameters:
callback - the callback metadata
info - the info

getCallbacks

protected Set<CallbackItem<?>> getCallbacks(DependencyInfo dependency)
Description copied from class: CallbackAnnotationPlugin
Get the callbacks.

Specified by:
getCallbacks in class CallbackAnnotationPlugin<org.jboss.reflect.spi.FieldInfo,Install>
Parameters:
dependency - the dependency info
Returns:
set of callback items

createCallback

protected AbstractCallbackMetaData createCallback(org.jboss.reflect.spi.FieldInfo info,
                                                  Install annotation)
Description copied from class: CallbackAnnotationPlugin
Create new CallbackMetaData instance.

Specified by:
createCallback in class CallbackAnnotationPlugin<org.jboss.reflect.spi.FieldInfo,Install>
Parameters:
info - the info
annotation - the annotation
Returns:
new CallbackMetaData instance

getCallbacks

protected List<CallbackMetaData> getCallbacks(AbstractBeanMetaData beanMetaData)
Description copied from class: CallbackAnnotationPlugin
Get the callback metadatas.

Specified by:
getCallbacks in class CallbackAnnotationPlugin<org.jboss.reflect.spi.FieldInfo,Install>
Parameters:
beanMetaData - the bean metadata
Returns:
list of callback metadatas


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