-------------------------------------------------------------------------------- -- Title: LWInfoService.lua -- Description: Like a square peg in a round hole -- Author: Raphaël Szwarc http://alt.textdrive.com/lua/ -- Creation Date: February 1, 2005 -- Legal: Copyright (C) 2005 Raphaël Szwarc -------------------------------------------------------------------------------- -- import dependencies local LWObjectService = require( "LWObjectService" ) local LWInfoPage = require( "LWInfoPage" ) -- define the class local super = LWObjectService local self = super() -- instance method to define a component for a given object function self:componentWithObject( anObject, aContext ) return LWInfoPage( aContext ) end return self