|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.xml.XMLDefinitionUtil
public final class XMLDefinitionUtil
| Method Summary | ||
|---|---|---|
static void |
checkSimpleWebBeansInXML(Class<?> clazz,
Element webBeanDecleration,
String errorMessage)
Checks the conditions for simple webbeans class defined in the XML file. |
|
static void |
checkTypeMetaDataClasses(List<Class<? extends Annotation>> typeSet,
String errorMessage)
|
|
static
|
defineXMLBindingType(AbstractOwbBean<T> component,
List<Class<? extends Annotation>> annotationSet,
List<Element> annotationElementList,
String errorMessage)
|
|
static
|
defineXMLClassLevelInterceptorType(XMLManagedBean<T> component,
List<Class<? extends Annotation>> annotationSet,
List<Element> annotationElementList,
String errorMessage)
|
|
static
|
defineXMLDecorators(XMLManagedBean<T> component,
List<Class<? extends Annotation>> annotationSet,
Element decoratorDecleration,
String errorMessage)
|
|
static
|
defineXMLDisposalMethod(XMLManagedBean<T> component,
Method disposalMethod,
Element disposalMethodElement,
String errorMessage)
Configures the disposal method of the webbeans component using the xml configuration. |
|
static
|
defineXMLInterceptors(XMLManagedBean<T> component,
List<Class<? extends Annotation>> annotationSet,
List<Element> annotationElementList,
String errorMessage)
|
|
static
|
defineXMLMethodLevelInterceptorType(XMLManagedBean<T> component,
Method interceptorMethod,
Element interceptorMethodElement,
String errorMessage)
|
|
static
|
defineXMLName(AbstractOwbBean<T> component,
List<Class<? extends Annotation>> annotationSet)
|
|
static
|
defineXMLObservesMethod(XMLManagedBean<T> component,
Method observesMethod,
Element observesMethodElement,
String errorMessage)
TODO review the logic of this function. |
|
static
|
defineXMLProducerMethod(WebBeansXMLConfigurator configurator,
XMLManagedBean<T> component,
Method producesMethod,
Element producerMethodElement,
String errorMessage)
Returns newly created and configures xml webbeans producer component. |
|
static
|
defineXMLSpecializes(XMLManagedBean<T> component,
List<Class<? extends Annotation>> annotationSet)
|
|
static
|
defineXMLStereoType(AbstractOwbBean<T> component,
List<Class<? extends Annotation>> annotationSet)
Configures the webbeans component stereotype. |
|
static
|
defineXMLTypeMetaData(AbstractOwbBean<T> component,
List<Class<? extends Annotation>> annotationSet,
Class<? extends Annotation> defineType,
String errorMessage)
Gets applicable annotation class for given defineType parameter from the given annotation set. |
|
static InjectionPoint |
getXMLMethodInjectionPoint(AbstractOwbBean<?> component,
XMLInjectionPointModel model,
Method method)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void checkSimpleWebBeansInXML(Class<?> clazz,
Element webBeanDecleration,
String errorMessage)
throws WebBeansConfigurationException
clazz - simple webbeans class declared in XML
WebBeansConfigurationException - if check is fail
public static void checkTypeMetaDataClasses(List<Class<? extends Annotation>> typeSet,
String errorMessage)
public static <T> Class<? extends Annotation> defineXMLTypeMetaData(AbstractOwbBean<T> component,
List<Class<? extends Annotation>> annotationSet,
Class<? extends Annotation> defineType,
String errorMessage)
component - webbeans componentannotationSet - type-level metadata annotation setdefineType - annotation type classerrorMessage - error message for the operation
public static <T> boolean defineXMLBindingType(AbstractOwbBean<T> component,
List<Class<? extends Annotation>> annotationSet,
List<Element> annotationElementList,
String errorMessage)
public static <T> void defineXMLClassLevelInterceptorType(XMLManagedBean<T> component,
List<Class<? extends Annotation>> annotationSet,
List<Element> annotationElementList,
String errorMessage)
public static <T> void defineXMLMethodLevelInterceptorType(XMLManagedBean<T> component,
Method interceptorMethod,
Element interceptorMethodElement,
String errorMessage)
public static <T> void defineXMLStereoType(AbstractOwbBean<T> component,
List<Class<? extends Annotation>> annotationSet)
component - webbeans componentannotationSet - set of type-level metadata annotation set
public static <T> boolean defineXMLName(AbstractOwbBean<T> component,
List<Class<? extends Annotation>> annotationSet)
public static <T> void defineXMLSpecializes(XMLManagedBean<T> component,
List<Class<? extends Annotation>> annotationSet)
public static <T> void defineXMLInterceptors(XMLManagedBean<T> component,
List<Class<? extends Annotation>> annotationSet,
List<Element> annotationElementList,
String errorMessage)
public static <T> void defineXMLDecorators(XMLManagedBean<T> component,
List<Class<? extends Annotation>> annotationSet,
Element decoratorDecleration,
String errorMessage)
public static <T> XMLProducerBean<T> defineXMLProducerMethod(WebBeansXMLConfigurator configurator,
XMLManagedBean<T> component,
Method producesMethod,
Element producerMethodElement,
String errorMessage)
component - webbeans component that defines producer methodproducesMethod - producer methodproducerMethodElement - produce method xml elementerrorMessage - error message
XMLProducerBean
public static <T> void defineXMLDisposalMethod(XMLManagedBean<T> component,
Method disposalMethod,
Element disposalMethodElement,
String errorMessage)
component - producer method webbeans componentdisposalMethod - disposal method defined in the xmldisposalMethodElement - disposal method xml elementerrorMessage - error message used in exceptions
WebBeansConfigurationException - if more than one Disposal element
exist for the given disposal method element
UnsatisfiedResolutionException - if no producer method found for
given disposal method
public static <T,K> void defineXMLObservesMethod(XMLManagedBean<T> component,
Method observesMethod,
Element observesMethodElement,
String errorMessage)
public static InjectionPoint getXMLMethodInjectionPoint(AbstractOwbBean<?> component,
XMLInjectionPointModel model,
Method method)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||