geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sagenschneider, Daniel A" <Daniel.Sagenschnei...@team.telstra.com>
Subject RE: [XML Parsing]
Date Fri, 05 Sep 2003 08:47:00 GMT
My bad.  The code should have been as follows to provide a generic interface (EnterpriseBeanMethodMapper)
to be available:



class ParticularEnterpriseBeanMapper extends EnterpriseBeanMethodMapper {

void callImplementationMethod(EnterpriseBean ejbImplementationInstance
					, int methodIndex
					, Object[] arguments
					, /* potential objects for callback as statically required */) {
	// generic potential hookin calls
	...
	switch(methodIndex) {

		case 1:
			// method specific potential hookin calls

			((ParticularEnterpriseBean)ejbImplementationInstance).method((ArgumentTypeOne)agruments[0]
													, (ArgumentTypeTwo)arguments[1]);	// hardcoded linkage - reducing memory and
computation

		...

	}
	...
	// generic potential hookin calls
}

}

Mime
View raw message