All Examples  This Package
  Class examples.workspace.monitor.XXXMonitor
java.lang.Object
   |
   +----examples.workspace.monitor.XXXMonitor
  -  public class XXXMonitor
  
-  extends Object
  
-  implements SetMonitor
   
This code example shows how a Workspace Monitor can be used to
 alter/encode a Workspace value when set. For example, you might
 use a class like this to compress or encrypt Workspace values.
 
 
To set up this example:
- Set up your development shell as described in Setting up your environment.
 - Compile this example by executing the following command in your development shell:
$ javac -d %SERVER_CLASSES% XXXMonitor.java
	
 - You do not execute this example directly; it is called by the
MonitorDemo class. You must
compile all the other examples in this package before running MonitorDemo.
 
  -  Author:
  
 -  Copyright (c) 1997-1999 by BEA Systems. All Rights Reserved.
 
  
  -  
	XXXMonitor()
   -  
 
  
  -  
	monitorInit(ParamSet, boolean)
   -   Initializes a monitor.
  
 -  
	postSet(Setable, ParamSet, Exception)
   -   Implement this method to carry out some arbitrary operations after
 the target object's set() method is called.
  
 -  
	preSet(Setable, ParamSet)
   -   Implement this method to carry out some arbitrary operations before
 the target object's set() method is called.
  
 -  
	setServices(T3ServicesDef)
   -   Sets the services stub for this class.
 
  
XXXMonitor
 public XXXMonitor()
  
monitorInit
 public void monitorInit(ParamSet params,
                         boolean isMaster)
  -  Initializes a monitor. This allows passing of initialization
 parameters even when the object is instantiated remotely on
 the WebLogic Server with a default constructor (which cannot
 have arguments).
  
    -  Parameters:
    
 -  params - ParamSet of initialization values
    
-  isMaster - true if this is a Master Monitor
    
  -  Throws: ParamSetException
    
 -  if the Monitor cannot be initialized or
                          there is a problem with the ParamSet
  
 
 
 
setServices
 public void setServices(T3ServicesDef services)
  -  Sets the services stub for this class. It allows you to write a class that
 can be instantiated by a client or a WebLogic Server -- how this class
 accesses WebLogic services is determined by the services stub, which is
 set at runtime.
 
preSet
 public void preSet(Setable target,
                    ParamSet callbackData) throws MonitorException
  -  Implement this method to carry out some arbitrary operations before
 the target object's set() method is called. The target
 object must implement the weblogic.common.Setable interface.
 In this example, we illustrate how a Master Monitor can alter the
 state of a target object; here we set a new value in the target
 object to "XXX". A regular Monitor cannot alter a target's state; this
 operation will fail if not invoked by a Master Monitor.
  
    -  Parameters:
    
 -  target - Object to be set
    
-  callbackData - ParamSet of potential data for callback
    
  -  Throws: MonitorException
    
 -  if a
                          Monitor vetoes the operation
  
 
 
 
postSet
 public void postSet(Setable target,
                     ParamSet callbackData,
                     Exception e)
  -  Implement this method to carry out some arbitrary operations after
 the target object's set() method is called. The target
 object must implement the weblogic.common.Setable interface.
  
    -  Parameters:
    
 -  target - Object to be set
    
-  callbackData - ParamSet of potential data for callback
    
-  e - Exception to be thrown if the monitor is vetoed
                          or does not complete
  
   
 
 
All Examples  This Package