AnnotationPortletConfigTests_SPEC2_28_EventDeclaration.java 文件源码

java
阅读 17 收藏 0 点赞 0 评论 0

项目:portals-pluto 作者:
@EventMethod(
   portletName = "AnnotationPortletConfigTests_SPEC2_28_EventDeclaration", 
   processingEvents = @PortletQName(
      localPart = "AnnotationPortletConfigTests_SPEC2_28_EventDeclaration_a", 
      namespaceURI = "http://www.apache.org/portals/pluto/portlet-tck_3.0"
   ),
   publishingEvents = {
      @PortletQName(
         localPart = "AnnotationPortletConfigTests_SPEC2_28_EventDeclaration_b", 
         namespaceURI = "http://www.apache.org/portals/pluto/portlet-tck_3.0"
      )
   }
)
public void processEvent_a(EventRequest portletReq, EventResponse portletResp)
         throws PortletException, IOException {

   QName eventQName = new QName(
         "http://www.apache.org/portals/pluto/portlet-tck_3.0",
         "AnnotationPortletConfigTests_SPEC2_28_EventDeclaration_b");
   portletResp.setEvent(eventQName, "Hi!");
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号