public class JMSSystemResource extends ConfigurationExtension
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
_DescriptorFileName |
private static java.lang.String |
FILE_SEP |
Constructor and Description |
---|
JMSSystemResource(weblogic.management.provider.custom.ConfigurationMBeanCustomized customized) |
Modifier and Type | Method and Description |
---|---|
void |
_postCreate() |
void |
_preDestroy() |
private boolean |
descriptorFilePathContainJmsDirectory(java.lang.String descriptorFileName) |
java.lang.String |
getDescriptorFileName() |
JMSBean |
getJMSResource() |
DescriptorBean |
getResource() |
protected Descriptor |
loadDescriptor(DescriptorManager dm,
java.io.InputStream in,
java.util.List holder)
Sub-classes should override this method to munge the descriptor
|
void |
setDescriptorFileName(java.lang.String descriptorFileName)
This method needs to handle the following (likely not exhaustive) combinations of prefix and descriptorFileName
(1) prefix: "partitions/foo_partition/jms", descriptorFileName: "goo-jms.xml" --> "partitions/foo_partition/jms/goo-jmx.xml"
(2) "partitions/foo_partition", "jms/goo-jms.xml" --> "partitions/foo_partition/jms/goo-jmx.xml"
(3) "", "partitions/foo_partition/jms/goo-jms.xml" --> "partitions/foo_partition/jms/goo-jmx.xml"
(4) "", "goo-jms.xml" --> "jms/goo-jmx.xml"
(5) "", "jms/goo-jms.xml" --> "jms/goo-jmx.xml"
(6) "", "jms-jms.xml" --> "jms/jms-jmx.xml"
|
getBooleanProperty, getExtensionRoot, getFileNamePrefix
clone, freezeCurrentValue, getMbean, getTaggedMBeanMap, getTags, getValue, isAdmin, isConfig, isDynamicallyCreated, isEdit, isRuntime, putValue, putValueNotify, restoreDefaultValue, sendNotification, setTags, touch
getName, getObjectName, getParent, isRegistered, setName, setParent
private java.lang.String _DescriptorFileName
private static final java.lang.String FILE_SEP
public JMSSystemResource(weblogic.management.provider.custom.ConfigurationMBeanCustomized customized)
public java.lang.String getDescriptorFileName()
private boolean descriptorFilePathContainJmsDirectory(java.lang.String descriptorFileName)
descriptorFileName
- public void setDescriptorFileName(java.lang.String descriptorFileName)
descriptorFileName
- public DescriptorBean getResource()
public JMSBean getJMSResource()
public void _postCreate()
public void _preDestroy()
protected Descriptor loadDescriptor(DescriptorManager dm, java.io.InputStream in, java.util.List holder) throws java.lang.Exception
ConfigurationExtension
loadDescriptor
in class ConfigurationExtension
java.io.IOException
javax.xml.stream.XMLStreamException
java.lang.Exception