VisiBroker for Java

com.inprise.vbroker.extension
Interface Activator

All Superinterfaces:
IDLEntity, java.io.Serializable

public interface Activator
extends IDLEntity

Allows programmatic control over the activation and deactivation of Objects. When you design your object implementation, you may want to defer the activation of ORB objects until a client requests them. By deferring object activation, you benefit from greater performance. If you have thousands of objects on a server, you can save system resources by only activating the objects when clients request them. You can defer the activation of multiple object implementations with a single Activator


Method Summary
 Object activate(ImplementationDef impl)
          Used to activate an object implementation under the control of an Activator.
 void deactivate(Object obj, ImplementationDef impl)
          Used to deactivate an object implementation under the control of an Activator.
 

Method Detail

deactivate

void deactivate(Object obj,
                ImplementationDef impl)
Used to deactivate an object implementation under the control of an Activator. In this method, the ORB uniquely identifies the object implementation to deactivate by passing the Activator an object reference and an ImplementationDef parameter from which the implementation can obtain ref_data, the unique identifier. For an implementation with a large number of objects, you might use deactivate() to clean up state data when you have a loaded cache of objects.


activate

Object activate(ImplementationDef impl)
Used to activate an object implementation under the control of an Activator. When the ORB receives a client request for an object under the responsibility of the Activator, the ORB invokes the activate() method on the Activator. In this method, the ORB uniquely identifies the activated object implementation by passing the Activator an ImplementationDef parameter from which the implementation can obtain ref_data, the unique identifier


Borland Software Corporation
http://www.borland.com
100 Enterprise Way
Scotts Valley, CA 95066
Voice: (831) 431-1000
pubsweb@borland.com

Read the latest documentation online