Search in sources :

Example 1 with AbstractMessageContainer

use of org.apache.cxf.service.model.AbstractMessageContainer in project cxf by apache.

the class JAXBDataBase method getReturnMethodAnnotations.

private Annotation[] getReturnMethodAnnotations(MessagePartInfo mpi) {
    AbstractMessageContainer mi = mpi.getMessageInfo();
    if (mi == null || !isOutputMessage(mi)) {
        return null;
    }
    OperationInfo oi = mi != null ? mi.getOperation() : null;
    return oi != null ? (Annotation[]) oi.getProperty("method.return.annotations") : null;
}
Also used : OperationInfo(org.apache.cxf.service.model.OperationInfo) AbstractMessageContainer(org.apache.cxf.service.model.AbstractMessageContainer) Annotation(java.lang.annotation.Annotation)

Aggregations

Annotation (java.lang.annotation.Annotation)1 AbstractMessageContainer (org.apache.cxf.service.model.AbstractMessageContainer)1 OperationInfo (org.apache.cxf.service.model.OperationInfo)1