com.bea.wli.sb.transports
Class TransportValidationContext

java.lang.Object
  extended by com.bea.wli.sb.transports.TransportValidationContext

public class TransportValidationContext
extends Object

Container for supplying information to transport providers that can be used when implementing validation checks of endpoint configuration The context property Bag contains other objects useful during validation. A JMXConnection can be retrieved from the property context bag with the JMXCONNECTOR key The provider can then access the alsb server MBeans using this object. If no JMXConnector is available, or server MBeans are no more available, the validation must be done in "offline" mode.


Field Summary
static String JMXCONNECTOR
           
 
Constructor Summary
TransportValidationContext(Locale locale, ServiceInfo info, Diagnostics diags)
           
TransportValidationContext(Locale locale, ServiceInfo info, Diagnostics diags, HashMap contextPropertyBag)
           
 
Method Summary
 Object getContextProperty(Object key)
           
 Set getContextPropertyKeySet()
           
 Diagnostics getDiagnostics()
           
 Locale getLocale()
           
 ServiceInfo getServiceInfo()
           
 Object putContextProperty(Object key, Object value)
           
 Object removeContextProperty(Object key)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JMXCONNECTOR

public static final String JMXCONNECTOR
See Also:
Constant Field Values
Constructor Detail

TransportValidationContext

public TransportValidationContext(Locale locale,
                                  ServiceInfo info,
                                  Diagnostics diags)

TransportValidationContext

public TransportValidationContext(Locale locale,
                                  ServiceInfo info,
                                  Diagnostics diags,
                                  HashMap contextPropertyBag)
Method Detail

getLocale

public Locale getLocale()
Returns:
locale to be used when returning diagnostic messages from validation

getServiceInfo

public ServiceInfo getServiceInfo()
Returns:
information about the service to be validated

getDiagnostics

public Diagnostics getDiagnostics()
Returns:
container diagnostics object to be used for returning validation messages

putContextProperty

public Object putContextProperty(Object key,
                                 Object value)

getContextProperty

public Object getContextProperty(Object key)

getContextPropertyKeySet

public Set getContextPropertyKeySet()

removeContextProperty

public Object removeContextProperty(Object key)