You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Frank W. Zammetti" <fz...@omnytex.com> on 2005/10/28 22:46:03 UTC

Re: [ot] utility to verify if an Object implements all methods from Interface?

Yeah, I don't know why I thought there was more to it 20 minutes ago, that
looks right to me too now.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: fzammetti@hotmail.com

On Fri, October 28, 2005 4:13 pm, Richard Yee said:
> I think the subclassing suggestion is the easiest.
>
> public class subclass extends superclass implements
> theInterface {
>   // empty class declaration
> }
>
>
> -Richard
>
>
>
> --- "Frank W. Zammetti" <fz...@omnytex.com> wrote:
>
>> It's funny, I started writing up an example with a
>> subclass and an
>> implemented interface and cloning and so on and so
>> forth and as I got near
>> the end I said "wait, this is stupid, just loop
>> through with reflection as
>> I and others suggested yesterday!"... Sometimes the
>> "brute force" method
>> really *is* the simplest and easiest :)
>>
>> --
>> Frank W. Zammetti
>> Founder and Chief Software Architect
>> Omnytex Technologies
>> http://www.omnytex.com
>> AIM: fzammetti
>> Yahoo: fzammetti
>> MSN: fzammetti@hotmail.com
>>
>> On Fri, October 28, 2005 3:56 pm, Dave Newton said:
>> > Mick Knutson wrote:
>> >
>> >>Because I would have to modify generated code to
>> do that. And it only
>> >>implements serializable. Nothing else.
>> >>
>> >>
>> > And you can't subclass it and have the subclass
>> implement the interface?
>> >
>> > In any case, just loop through w/ reflection and
>> check.
>> >
>> > I'm still confused though; are you calling methods
>> on these classes
>> > through reflection, which is why you won't catch
>> these issues during
>> > compilation?
>> >
>> > Dave
>> >
>> >
>> >
>> >
>>
> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail:
>> user-unsubscribe@struts.apache.org
>> > For additional commands, e-mail:
>> user-help@struts.apache.org
>> >
>> >
>>
>>
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> user-unsubscribe@struts.apache.org
>> For additional commands, e-mail:
>> user-help@struts.apache.org
>>
>>
>
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [ot] utility to verify if an Object implements all methods from Interface?

Posted by Dave Newton <ne...@pingsite.com>.
Frank W. Zammetti wrote:

> Hey, this is 2005, almost 2006, any solution must have:
>
> * At least 50 EJBs
> * Be based on some framework that can't be comprehended without 
> $10,000 worth of development tools
> * A completely superfluous persistence framework
> * At least 25 XML config files
> * 75 UML diagrams
> * A document talking about at least 12 different patterns that are 
> implemented
> * Require three Cray supercomputers to reach acceptable scalability
>
> Did I miss anything?

Probably :/

Dave "Longing for the days of my 4K TRS-80 Level I Basic"



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [ot] utility to verify if an Object implements all methods from Interface?

Posted by "Frank W. Zammetti" <fz...@omnytex.com>.
Hey, this is 2005, almost 2006, any solution must have:

* At least 50 EJBs
* Be based on some framework that can't be comprehended without $10,000 
worth of development tools
* A completely superfluous persistence framework
* At least 25 XML config files
* 75 UML diagrams
* A document talking about at least 12 different patterns that are 
implemented
* Require three Cray supercomputers to reach acceptable scalability

Did I miss anything?

Frank

Dave Newton wrote:
> Frank W. Zammetti wrote:
> 
>> Yeah, I don't know why I thought there was more to it 20 minutes ago, 
>> that
>> looks right to me too now.
>>  
>>
> Oh, come on. There's gotta me an XML config file in there SOMEWHERE!
> 
> Dave
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 
> 

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: fzammetti@hotmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [ot] utility to verify if an Object implements all methods from Interface?

Posted by Dave Newton <ne...@pingsite.com>.
Frank W. Zammetti wrote:

>Yeah, I don't know why I thought there was more to it 20 minutes ago, that
>looks right to me too now.
>  
>
Oh, come on. There's gotta me an XML config file in there SOMEWHERE!

Dave




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org