Class MediaServerResource

java.lang.Object
com.bea.wcp.media.descriptor.resource.MediaServerResource
All Implemented Interfaces:
EventListener, weblogic.descriptor.BeanUpdateListener, weblogic.management.extension.Resource

public class MediaServerResource extends Object implements weblogic.management.extension.Resource
When the Media Gateway is configured, this class should be provided as the Resource. It receives the configuration beans built from config file, validates them, and passes them on for subsystem startup/config loading. Example config element (in config.xml): <custom-resource> mediaserver AdminServer <descriptor-file-name>custom/media-server.xml</descriptor-file-name> <resource-class>com.bea.wcp.media.descriptor.resource.MediaServerResource</resource-class> <descriptor-bean-class>com.bea.wcp.media.descriptor.beans.MediaServerBean</descriptor-bean-class> </custom-resource>
  • Field Details

  • Constructor Details

    • MediaServerResource

      public MediaServerResource()
  • Method Details

    • initialize

      public void initialize(weblogic.descriptor.DescriptorBean configuration) throws weblogic.application.ModuleException
      Specified by:
      initialize in interface weblogic.management.extension.Resource
      Throws:
      weblogic.application.ModuleException
    • prepare

      public void prepare() throws weblogic.application.ModuleException
      Specified by:
      prepare in interface weblogic.management.extension.Resource
      Throws:
      weblogic.application.ModuleException
    • activate

      public void activate() throws weblogic.application.ModuleException
      Specified by:
      activate in interface weblogic.management.extension.Resource
      Throws:
      weblogic.application.ModuleException
    • unprepare

      public void unprepare() throws weblogic.application.ModuleException
      Specified by:
      unprepare in interface weblogic.management.extension.Resource
      Throws:
      weblogic.application.ModuleException
    • deactivate

      public void deactivate() throws weblogic.application.ModuleException
      Specified by:
      deactivate in interface weblogic.management.extension.Resource
      Throws:
      weblogic.application.ModuleException
    • remove

      public void remove() throws weblogic.application.ModuleException
      Specified by:
      remove in interface weblogic.management.extension.Resource
      Throws:
      weblogic.application.ModuleException
    • prepareUpdate

      public void prepareUpdate(weblogic.descriptor.BeanUpdateEvent beanUpdateEvent) throws weblogic.descriptor.BeanUpdateRejectedException
      Specified by:
      prepareUpdate in interface weblogic.descriptor.BeanUpdateListener
      Throws:
      weblogic.descriptor.BeanUpdateRejectedException
    • activateUpdate

      public void activateUpdate(weblogic.descriptor.BeanUpdateEvent beanUpdateEvent) throws weblogic.descriptor.BeanUpdateFailedException
      Specified by:
      activateUpdate in interface weblogic.descriptor.BeanUpdateListener
      Throws:
      weblogic.descriptor.BeanUpdateFailedException
    • rollbackUpdate

      public void rollbackUpdate(weblogic.descriptor.BeanUpdateEvent beanUpdateEvent)
      Specified by:
      rollbackUpdate in interface weblogic.descriptor.BeanUpdateListener