org.jboss.kernel.plugins.annotations
Class FactoryMethodAnnotationPlugin
java.lang.Object
org.jboss.util.JBossObject
org.jboss.kernel.plugins.annotations.BaseMetaDataAnnotationPlugin<T,C>
org.jboss.kernel.plugins.annotations.AbstractAnnotationPlugin<T,C>
org.jboss.kernel.plugins.annotations.AbstractAdaptersAnnotationPlugin<T,C>
org.jboss.kernel.plugins.annotations.AbstractParameterAnnotationPlugin<org.jboss.reflect.spi.MethodInfo,C,P>
org.jboss.kernel.plugins.annotations.AbstractMethodParameterAnnotationPlugin<FactoryMethod,AbstractConstructorMetaData>
org.jboss.kernel.plugins.annotations.FactoryMethodAnnotationPlugin
- All Implemented Interfaces:
- Cloneable, AnnotationPlugin<org.jboss.reflect.spi.MethodInfo,FactoryMethod>, MetaDataAnnotationPlugin<org.jboss.reflect.spi.MethodInfo,FactoryMethod>, org.jboss.util.JBossInterface
public class FactoryMethodAnnotationPlugin
- extends AbstractMethodParameterAnnotationPlugin<FactoryMethod,AbstractConstructorMetaData>
Factory method annotation plugin.
- Author:
- Ales Justin
Fields inherited from class org.jboss.util.JBossObject |
hashCode, log, toString |
Methods inherited from class org.jboss.util.JBossObject |
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toString, toStringImplementation |
FactoryMethodAnnotationPlugin
public FactoryMethodAnnotationPlugin(Set<Annotation2ValueMetaDataAdapter<? extends Annotation>> adapters)
checkAnnotatedInfo
protected boolean checkAnnotatedInfo(ElementType type)
- Description copied from class:
AbstractParameterAnnotationPlugin
- Check additional element type -
apart from Parameter element type.
- Specified by:
checkAnnotatedInfo
in class AbstractParameterAnnotationPlugin<org.jboss.reflect.spi.MethodInfo,FactoryMethod,AbstractConstructorMetaData>
- Parameters:
type
- the type
- Returns:
- true if additional type is supported
isMetaDataAlreadyPresent
protected boolean isMetaDataAlreadyPresent(org.jboss.reflect.spi.MethodInfo info,
FactoryMethod annotation,
BeanMetaData beanMetaData)
- Description copied from class:
BaseMetaDataAnnotationPlugin
- Is meta data already present.
- Overrides:
isMetaDataAlreadyPresent
in class BaseMetaDataAnnotationPlugin<org.jboss.reflect.spi.MethodInfo,FactoryMethod>
- Parameters:
info
- the infoannotation
- the annotationbeanMetaData
- the bean meta data
- Returns:
- true if meta data already present
getParameters
protected org.jboss.reflect.spi.ParameterInfo[] getParameters(org.jboss.reflect.spi.MethodInfo info)
- Description copied from class:
AbstractParameterAnnotationPlugin
- Get the parameters infos from type.
- Specified by:
getParameters
in class AbstractParameterAnnotationPlugin<org.jboss.reflect.spi.MethodInfo,FactoryMethod,AbstractConstructorMetaData>
- Parameters:
info
- the type
- Returns:
- array of parameter info
handleParameterlessInfo
protected List<? extends MetaDataVisitorNode> handleParameterlessInfo(org.jboss.reflect.spi.MethodInfo info,
FactoryMethod annotation,
BeanMetaData beanMetaData)
- Description copied from class:
AbstractParameterAnnotationPlugin
- Handle info which has zero parameters.
- Specified by:
handleParameterlessInfo
in class AbstractParameterAnnotationPlugin<org.jboss.reflect.spi.MethodInfo,FactoryMethod,AbstractConstructorMetaData>
- Parameters:
info
- the infoannotation
- the annotationbeanMetaData
- the bean metadata
- Returns:
- list of added meta data visitor nodes
createParametrizedMetaData
protected AbstractConstructorMetaData createParametrizedMetaData(org.jboss.reflect.spi.MethodInfo info,
FactoryMethod annotation,
BeanMetaData beanMetaData)
- Description copied from class:
AbstractParameterAnnotationPlugin
- Create new Parametrized metadata.
- Overrides:
createParametrizedMetaData
in class AbstractParameterAnnotationPlugin<org.jboss.reflect.spi.MethodInfo,FactoryMethod,AbstractConstructorMetaData>
- Parameters:
info
- the infoannotation
- the annotationbeanMetaData
- the bean metadata
- Returns:
- new ParameterizedMetaData instance
setParameterizedMetaData
protected void setParameterizedMetaData(AbstractConstructorMetaData parameterizedMetaData,
BeanMetaData beanMetaData)
- Description copied from class:
AbstractParameterAnnotationPlugin
- Set the ParameterizedMetaData instance.
- Specified by:
setParameterizedMetaData
in class AbstractParameterAnnotationPlugin<org.jboss.reflect.spi.MethodInfo,FactoryMethod,AbstractConstructorMetaData>
- Parameters:
parameterizedMetaData
- the parameterized metadatabeanMetaData
- the bean metadata
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.