public String getChainName() { return ann.name(); }
public HandlerChainAnnotation getHandlerChainAnnotation(Class clazz) { HandlerChain handlerChain = (HandlerChain) clazz.getAnnotation(HandlerChain.class); HandlerChainAnnotation annotation = null; if (handlerChain != null) { annotation = new HandlerChainAnnotation(handlerChain.file(), handlerChain.name()); } return annotation; }
public static HandlerChainAnnot createFromAnnotation(Annotation annotation) { HandlerChainAnnot returnAnnot = null; if (annotation != null && annotation instanceof javax.jws.HandlerChain) { javax.jws.HandlerChain hc = (javax.jws.HandlerChain) annotation; returnAnnot = new HandlerChainAnnot(hc.file(), hc.name()); } return returnAnnot; }
public static HandlerChainAnnot createFromAnnotation(Annotation annotation) { HandlerChainAnnot returnAnnot = null; if (annotation != null && annotation instanceof javax.jws.HandlerChain) { javax.jws.HandlerChain hc = (javax.jws.HandlerChain) annotation; returnAnnot = new HandlerChainAnnot(hc.file(), hc.name()); } return returnAnnot; }
/** * This is a helper method to create a <code>HandlerChainAnnot</code> since the * * @param handlerChain - <code>HandlerChain</code> * @return - <code>HandlerChainAnnot</code> * @HandlerChain annotation may be present on a Type, Method, or Field. */ public static HandlerChainAnnot createHandlerChainAnnot(HandlerChain handlerChain) { HandlerChainAnnot hcAnnot = HandlerChainAnnot.createHandlerChainAnnotImpl(); hcAnnot.setFile(handlerChain.file()); hcAnnot.setName(handlerChain.name()); return hcAnnot; }
/** * This is a helper method to create a <code>HandlerChainAnnot</code> since the * * @param handlerChain - <code>HandlerChain</code> * @return - <code>HandlerChainAnnot</code> * @HandlerChain annotation may be present on a Type, Method, or Field. */ public static HandlerChainAnnot createHandlerChainAnnot(HandlerChain handlerChain) { HandlerChainAnnot hcAnnot = HandlerChainAnnot.createHandlerChainAnnotImpl(); hcAnnot.setFile(handlerChain.file()); hcAnnot.setName(handlerChain.name()); return hcAnnot; }
serviceRefName = annotation.name();