com.sun.xml.ws.api.FeatureConstructor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webservices-rt Show documentation
Show all versions of webservices-rt Show documentation
This module contains the Metro runtime code.
/*
* Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.sun.xml.ws.api;
import com.sun.xml.ws.developer.MemberSubmissionAddressing;
import com.sun.xml.ws.developer.MemberSubmissionAddressingFeature;
import jakarta.xml.ws.WebServiceFeature;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;
/**
*
* This annotation should be used on a constructor of classes extending {@link WebServiceFeature} other than
* Spec defined features, to help JAX-WS runtime recognize feature extensions.
*
*
* For WebServiceFeature annotations to be recognizable by JAX-WS runtime, the feature annotation should point
* to a corresponding bean (class extending WebServiceFeature). Only one of the constructors in the bean MUST be marked
* with @FeatureConstructor whose value captures the annotaion attribute names for the corresponding parameters.
*
* For example,
* @see MemberSubmissionAddressingFeature
* @see MemberSubmissionAddressing
*
* @see com.sun.xml.ws.developer.Stateful
* @see com.sun.xml.ws.developer.StatefulFeature
*
* @author Rama Pulavarthi
*/
@Retention(RUNTIME)
@Target(ElementType.CONSTRUCTOR)
public @interface FeatureConstructor {
/**
* The name of the parameter.
*/
String[] value() default {};
}