01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */package org.apache.geronimo.j2ee.deployment.annotation;
19:
20: import javax.jws.HandlerChain;
21: import javax.xml.ws.WebServiceRef;
22:
23: @HandlerChain(file="annotation/handlers1.xml")
24: // Ignored by Geronimo at the class-level
25: public class HandlerChainAnnotationTest {
26:
27: @WebServiceRef(name="WebServiceRef1",value=javax.xml.ws.Service.class,wsdlLocation="WEB-INF/wsdl/WebServiceRef1.wsdl",mappedName="mappedName")
28: @HandlerChain(file="annotation/handlers2.xml")
29: int annotatedField1;
30:
31: @WebServiceRef(name="WebServiceRef2",value=javax.xml.ws.Service.class,wsdlLocation="WEB-INF/wsdl/WebServiceRef2.wsdl",mappedName="mappedName")
32: @HandlerChain(file="annotation/handlers3.xml")
33: boolean annotatedField2;
34:
35: //------------------------------------------------------------------------------------------
36: // Method name (for setter-based injection) must follow JavaBeans conventions:
37: // -- Must start with "set"
38: // -- Have one parameter
39: // -- Return void
40: //------------------------------------------------------------------------------------------
41: @WebServiceRef(name="WebServiceRef3",value=javax.xml.ws.Service.class,wsdlLocation="WEB-INF/wsdl/WebServiceRef3.wsdl",mappedName="mappedName")
42: @HandlerChain(file="annotation/handlers4.xml")
43: public void setAnnotatedMethod1(String string) {
44: }
45:
46: @WebServiceRef(name="WebServiceRef4",value=javax.xml.ws.Service.class,wsdlLocation="WEB-INF/wsdl/WebServiceRef4.wsdl",mappedName="mappedName")
47: @HandlerChain(file="annotation/handlers5.xml")
48: public void setAnnotatedMethod2(int ii) {
49: }
50:
51: @WebServiceRef(name="WebServiceRef100",value=javax.xml.ws.Service.class,wsdlLocation="WEB-INF/wsdl/WebServiceRef4.wsdl",mappedName="mappedName")
52: @HandlerChain(file="annotation/handlers5.xml")
53: public void setAnnotatedMethod3(int ii) {
54: }
55:
56: }
|