com.sun.xml.ws.api
Class ComponentsFeature

java.lang.Object
  extended by javax.xml.ws.WebServiceFeature
      extended by com.sun.xml.ws.api.ComponentsFeature
All Implemented Interfaces:
ServiceSharedFeatureMarker

public class ComponentsFeature
extends WebServiceFeature
implements ServiceSharedFeatureMarker

Allows registration of multiple Components against the ComponentRegistry implementations of the Container, WSEndpoint, WSService, or Stub. 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.8

Field Summary
 
Fields inherited from class javax.xml.ws.WebServiceFeature
enabled
 
Constructor Summary
ComponentsFeature(List<ComponentFeature> componentFeatures)
          Constructs ComponentFeature with indicated component and target
 
Method Summary
 List<ComponentFeature> getComponentFeatures()
          Retrieves component
 String getID()
           
 
Methods inherited from class javax.xml.ws.WebServiceFeature
isEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentsFeature

public ComponentsFeature(List<ComponentFeature> componentFeatures)
Constructs ComponentFeature with indicated component and target

Parameters:
component - component
target - target
Method Detail

getID

public String getID()
Specified by:
getID in class WebServiceFeature

getComponentFeatures

public List<ComponentFeature> getComponentFeatures()
Retrieves component

Returns:
component


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.