# com.bea.wli.management.configuration
ServiceBrokerControlMBean Interface

public interface ServiceBrokerControlMBean
extends `ConfigurationMBean`

MBean for managing properties of a Service Broker Control

All Superinterfaces
  `ConfigurationMBean`, `DynamicMBean`, `MBeanRegistration`, `NotificationBroadcaster`, `WebLogicMBean`

## Field Summary

`public static final long` | `CACHING_STUB_SVUID` The magic number that is used to generate the serialVersionUID of the generated MBean Stub (xxxMBean_Stub).

Fields from interface weblogic.management.configuration`.`ConfigurationMBean``
`CACHING_STUB_SVUID, DEFAULT_EMPTY_BYTE_ARRAY`

## Method Summary

`public void` | `addPropertiesForSelector`(`String` selectorValue, `ServiceBrokerControlPropertiesDocument` properties) Adds a new selector value and associated initial values for various properties.
`public `String`` | `getContextPath`() Returns the context-path of the webapp that contains the Service Broker Control this MBean represents
`public `String`` | `getControlClass`() Returns the fully-qualified class name of the Service Broker Control this MBean represents
`public `ServiceBrokerControlPropertiesDocument`` | `getProperties`(`String` selectorValue) Returns the dynamic properties for the control represented by this MBean and a specific selector value
`public `String`[]` | `getSelectorValues`() Returns all the selector values defined for this Configuration MBean
`public boolean` | `isCallback`() Returns `true` if this represents a callback within a JPD file, rather than a standalone ServiceBrokerControl
`public void` | `removeSelector`(`String` selectorValue) removes the given selector value and all properties associated with it.
`public void` | `setProperties`(`String` selectorValue, `ServiceBrokerControlPropertiesDocument` props) Sets the dynamic properties for the control represented by this MBean, for the specific selector value

Methods from interface `weblogic.management.configuration.`ConfigurationMBean``
`freezeCurrentValue, getAttributeStringValue, getComments, getNotes, getSetFields, getXml, getXmlConverter, isDefaultedMBean, isPersistenceEnabled, preDeregister, registerConfigMBean, restoreDefaultValue, setComments, setDefaultedMBean, setNotes, setPersistenceEnabled, touch, unRegisterConfigMBean`

Methods from interface `javax.management.`DynamicMBean``
`getAttribute, getAttributes, getMBeanInfo, invoke, setAttribute, setAttributes`

Methods from interface `javax.management.`MBeanRegistration``
`postDeregister, postRegister, preDeregister, preRegister`

Methods from interface `javax.management.`NotificationBroadcaster``
`addNotificationListener, getNotificationInfo, removeNotificationListener`

Methods from interface `weblogic.management.`WebLogicMBean``
`getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParent`

## Field Detail

### CACHING_STUB_SVUID

    public static final long CACHING_STUB_SVUID

  The magic number that is used to generate the serialVersionUID of the generated MBean Stub (xxxMBean_Stub). You must change this value whenever you make one of the changes to this interface:

  - remove an existing method.
  - change the signature of an existing "getter" or "setter" method.
  - change the signature of an existing "boolean getter", i.e, "boolean isEnabled()"

  Otherwise you don't need to change this value. For instance you can add new methods, or you can change the signature of methods that don't start with "get", "set" or "is". If you are in doubt then change the SVUID. It is a good idea to increment this value when changing.

## Method Detail

### addPropertiesForSelector(String, ServiceBrokerControlPropertiesDocument) Method

    public void addPropertiesForSelector(String selectorValue,
                                         ServiceBrokerControlPropertiesDocument properties)
         throws MBeanException

Adds a new selector value and associated initial values for various properties. Throws MBeanException if the selector value already exists

#### Parameters

selectorValue
  new selector value

properties
  the dynamic properties associated with this selector value

#### Exceptions

``MBeanException``

### getContextPath() Method

    public String getContextPath()

Returns the context-path of the webapp that contains the Service Broker Control this MBean represents

### getControlClass() Method

    public String getControlClass()

Returns the fully-qualified class name of the Service Broker Control this MBean represents

### getProperties(String) Method

    public ServiceBrokerControlPropertiesDocument getProperties(String selectorValue)

Returns the dynamic properties for the control represented by this MBean and a specific selector value

#### Returns

the dynamic properties or null if there is no entry matching the selector value

### getSelectorValues() Method

    public String[] getSelectorValues()

Returns all the selector values defined for this Configuration MBean

### isCallback() Method

    public boolean isCallback()

Returns `true` if this represents a callback within a JPD file, rather than a standalone ServiceBrokerControl

### removeSelector(String) Method

    public void removeSelector(String selectorValue)
         throws MBeanException

removes the given selector value and all properties associated with it. Throws MBeanException if the selector does not exist

#### Parameters

selectorValue
  - selector to be removed

#### Exceptions

``MBeanException``

### setProperties(String, ServiceBrokerControlPropertiesDocument) Method

    public void setProperties(String selectorValue,
                              ServiceBrokerControlPropertiesDocument props)

Sets the dynamic properties for the control represented by this MBean, for the specific selector value