Package com.sun.xml.ws.api
Class ComponentFeature
- java.lang.Object
-
- jakarta.xml.ws.WebServiceFeature
-
- com.sun.xml.ws.api.ComponentFeature
-
- All Implemented Interfaces:
ServiceSharedFeatureMarker
public class ComponentFeature extends jakarta.xml.ws.WebServiceFeature implements ServiceSharedFeatureMarker
Allows registration of aComponentagainst theComponentRegistryimplementations of theContainer,WSEndpoint,WSService, orStub. The registration is guaranteed to occur early in the initialization of these objects prior to tubeline creation (applicable to endpoint and stub only).Because the Container is shared among all Stubs created from a common WSService object, this feature must be passed during WSService initialization in order to register a Component against the client-side Container.
IllegalArgumentException will be thrown if the feature is used with an inappropriate target, e.g. stub target used during WSEndpoint initialization.
- Since:
- 2.2.6
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComponentFeature.TargetTargets the object on which the Component will be registered
-
Constructor Summary
Constructors Constructor Description ComponentFeature(Component component)Constructs ComponentFeature with indicated component and that is targeted at the Container.ComponentFeature(Component component, ComponentFeature.Target target)Constructs ComponentFeature with indicated component and target
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentgetComponent()Retrieves componentStringgetID()ComponentFeature.TargetgetTarget()Retrieves target
-
-
-
Constructor Detail
-
ComponentFeature
public ComponentFeature(Component component)
Constructs ComponentFeature with indicated component and that is targeted at the Container.- Parameters:
component- component
-
ComponentFeature
public ComponentFeature(Component component, ComponentFeature.Target target)
Constructs ComponentFeature with indicated component and target- Parameters:
component- componenttarget- target
-
-
Method Detail
-
getID
public String getID()
- Specified by:
getIDin classjakarta.xml.ws.WebServiceFeature
-
getComponent
public Component getComponent()
Retrieves component- Returns:
- component
-
getTarget
public ComponentFeature.Target getTarget()
Retrieves target- Returns:
- target
-
-