Class MediaServerResource
java.lang.Object
com.bea.wcp.media.descriptor.resource.MediaServerResource
- All Implemented Interfaces:
EventListener,weblogic.descriptor.BeanUpdateListener,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 Summary
FieldsModifier and TypeFieldDescriptionstatic final MediaServerDescriptorValidatorstatic final Stringstatic MediaServerResource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()voidactivateUpdate(weblogic.descriptor.BeanUpdateEvent beanUpdateEvent) voidvoidinitialize(weblogic.descriptor.DescriptorBean configuration) voidprepare()voidprepareUpdate(weblogic.descriptor.BeanUpdateEvent beanUpdateEvent) voidremove()voidrollbackUpdate(weblogic.descriptor.BeanUpdateEvent beanUpdateEvent) void
-
Field Details
-
descriptorValidator
-
MEDIA_SERVER_RESOURCE_NAME
- See Also:
-
THE_ONE
-
-
Constructor Details
-
MediaServerResource
public MediaServerResource()
-
-
Method Details
-
initialize
public void initialize(weblogic.descriptor.DescriptorBean configuration) throws weblogic.application.ModuleException - Specified by:
initializein interfaceweblogic.management.extension.Resource- Throws:
weblogic.application.ModuleException
-
prepare
public void prepare() throws weblogic.application.ModuleException- Specified by:
preparein interfaceweblogic.management.extension.Resource- Throws:
weblogic.application.ModuleException
-
activate
public void activate() throws weblogic.application.ModuleException- Specified by:
activatein interfaceweblogic.management.extension.Resource- Throws:
weblogic.application.ModuleException
-
unprepare
public void unprepare() throws weblogic.application.ModuleException- Specified by:
unpreparein interfaceweblogic.management.extension.Resource- Throws:
weblogic.application.ModuleException
-
deactivate
public void deactivate() throws weblogic.application.ModuleException- Specified by:
deactivatein interfaceweblogic.management.extension.Resource- Throws:
weblogic.application.ModuleException
-
remove
public void remove() throws weblogic.application.ModuleException- Specified by:
removein interfaceweblogic.management.extension.Resource- Throws:
weblogic.application.ModuleException
-
prepareUpdate
public void prepareUpdate(weblogic.descriptor.BeanUpdateEvent beanUpdateEvent) throws weblogic.descriptor.BeanUpdateRejectedException - Specified by:
prepareUpdatein interfaceweblogic.descriptor.BeanUpdateListener- Throws:
weblogic.descriptor.BeanUpdateRejectedException
-
activateUpdate
public void activateUpdate(weblogic.descriptor.BeanUpdateEvent beanUpdateEvent) throws weblogic.descriptor.BeanUpdateFailedException - Specified by:
activateUpdatein interfaceweblogic.descriptor.BeanUpdateListener- Throws:
weblogic.descriptor.BeanUpdateFailedException
-
rollbackUpdate
public void rollbackUpdate(weblogic.descriptor.BeanUpdateEvent beanUpdateEvent) - Specified by:
rollbackUpdatein interfaceweblogic.descriptor.BeanUpdateListener
-