Browse Prior Art Database

Methodology to Allow Procedural Code to Locate Objects

IP.com Disclosure Number: IPCOM000115199D
Original Publication Date: 1995-Mar-01
Included in the Prior Art Database: 2005-Mar-30
Document File: 2 page(s) / 53K

Publishing Venue

IBM

Related People

Holdsworth, SA: AUTHOR [+3]

Abstract

A technique to utilize a construct within SOM (IBM* System Object Model) to allow procedural code to locate and access an object. This allows procedural implementations of functions to call objects from their procedural code. While objects calling procedural functions is a relatively easy thing to do, there were no solutions available for having procedural code call objects. This technique uses a SOM construct known as a single instance class for the solution.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 59% of the total text.

Methodology to Allow Procedural Code to Locate Objects

      A technique to utilize a construct within SOM (IBM* System
Object Model) to allow procedural code to locate and access an
object.  This allows procedural implementations of functions to call
objects from their procedural code.  While objects calling procedural
functions is a relatively easy thing to do, there were no solutions
available for having procedural code call objects.  This technique
uses a SOM construct known as a single instance class for the
solution.

      The SingleInstance metaclass allows any class to be modified so
that only one instance of the class is created in any execution
environment.  Subsequent use of the New operation (normally used to
create a new instance of an object) does not create a new instance,
but instead returns a reference to the existing one.

By ensuring only one instance in any process, two capabilities are
gained:
  o  First is ensuring access to the same state information.
  o  Second is allowing location of the single instance without
      requiring users of the class to explicitly maintain location
      information.  Being in the same process as the procedural code
      allows it to be called from the procedural code.

      Procedural code is unable to use standard object-oriented
methodologies to get access to objects that are possibly changing
locations or are located in a different process.  A class that uses
the SingleInstance...