Class ServiceGroupContext

    • Method Detail

      • getId

        public String getId()
      • getServiceContext

        public ServiceContext getServiceContext​(AxisService service)
                                         throws AxisFault
        Gets a service context. Creates a new one from AxisService. There is no need to store service context inside serviceGroup context as well.
        Parameters:
        service - the AxisService for which to get a context
        Returns:
        Returns ServiceContext.
        Throws:
        AxisFault - if something goes wrong
      • setId

        public void setId​(String id)
      • addServiceContext

        public void addServiceContext​(ServiceContext srvctx)
        Adds the specified service context object to the lists of service contexts for this service group context.
        Parameters:
        srvctx - The ServiceContext object to add
      • findServiceContext

        public ServiceContext findServiceContext​(String name)
        Finds the service context object that corresponds to the specified name from the list of service contexts for this service group context.
        Parameters:
        name - The name associated with the ServiceContext
        Returns:
        The ServiceContext associated with the name, or null, if none can be found
      • findServiceContext

        public ServiceContext findServiceContext​(AxisService axisSrv)
        Finds the service context object that corresponds to the specified AxisService from the list of service contexts for this service group context.
        Parameters:
        axisSrv - the AxisService whose context we're looking for
        Returns:
        The ServiceContext associated with the AxisService or null, if none can be found
      • putContextProperties

        public void putContextProperties​(ServiceGroupContext context)
        This will do a copy of the properties from this context object to the properties of the specified context object.
        Parameters:
        context - The ServiceGroupContext object to hold the merged properties
      • writeExternal

        public void writeExternal​(ObjectOutput o)
                           throws IOException
        Save the contents of this object.

        NOTE: Transient fields and static fields are not saved. Also, objects that represent "static" data are not saved, except for enough information to be able to find matching objects when the message context is re-constituted.

        Specified by:
        writeExternal in interface Externalizable
        Parameters:
        out - The stream to write the object contents to
        Throws:
        IOException
      • activate

        public void activate​(ConfigurationContext cc)
        Some parts of the object restored from the readExternal deserialization work cannot be completed until we have a configurationContext. This method checks to see if additional work needs to be done in order to complete the object reconstitution.
        Parameters:
        cc - the active ConfigurationContext
      • isEquivalent

        public boolean isEquivalent​(ServiceGroupContext ctx)
        Compares key parts of the state from the current instance of this class with the specified instance to see if they are equivalent.

        This differs from the java.lang.Object.equals() method in that the equals() method generally looks at both the object identity (location in memory) and the object state (data).

        Parameters:
        ctx - The object to compare with
        Returns:
        TRUE if this object is equivalent with the specified object that is, key fields match FALSE, otherwise