commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james_strac...@yahoo.co.uk>
Subject Re: [Jelly] BCEL Taglibrary Beginnings
Date Mon, 20 Jan 2003 10:24:23 GMT
+1. This looks great!

James
-------
http://radio.weblogs.com/0112098/

----- Original Message -----
From: "Jason van Zyl" <jason@zenplex.com>
To: "Jakarta Commons Developers List" <commons-dev@jakarta.apache.org>
Sent: Monday, January 20, 2003 5:22 AM
Subject: Re: [Jelly] BCEL Taglibrary Beginnings


> On Sun, 2003-01-19 at 18:06, Mark R. Diggory wrote:
> > I started writting the beginnings of a BCEL taglibrary. Although it may
> > be a bit different than others may anticipate.
> >
> > Basically I've built two tags and a supporting "BeanExtender" class to
> > support them.
> >
> > <bcel:extends
> >     baseClass="java.lang.Object"
> >     packageName="org.foo"
> >     className="Test">
> >     <bcel:add-property name="bar" propertyType="int" write="false"/>
> >     <bcel:add-property name="bam" propertyType="java.lang.String"/>
> > </bcel:extends>
> >
> > Basically creates a new Class (org.foo.Test) that has:
> >
> > package org.foo;
> >
> > public Test extends java.lang.Object {
> >
> >    private int bar;
> >    private String bam;
> >
> >    public Test(){}
> >
> >    public int getBar(){
> >     return bar;
> >     }
> >
> >    public String getBam(){
> >     return bam;
> >     }
> >
> >    public void setBam(String bam){
> >     this.bam = bam;
> >     }
> > }
> >
> > It then "changes" the Security access on the ClassLoader "define"
> > method. Allowing the class to be added into the current loader. Once the
> > class is available it can then be instantiated by <useBean> or <new>.
> >
> > I'm sure there are some more "flexible" ways to design the Taglibrary, I
> > consider this to be a "first blush" over the idea. I'd be glad to donate
> > the code if others are interested in developing it too.
>
> +1
>
> I think that's nifty neato! What I'm really interested in is the Java
> code backing the Jelly. I've always wanted to make a simple API for BCEL
> for creating bytecode and it looks like you've got a awesome start to
> one.
>
> > -Mark Diggory
> >
> >
> > --
> > To unsubscribe, e-mail:
<mailto:commons-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
<mailto:commons-dev-help@jakarta.apache.org>
> --
> jvz.
>
> Jason van Zyl
> jason@zenplex.com
> http://tambora.zenplex.org
>
> In short, man creates for himself a new religion of a rational
> and technical order to justify his work and to be justified in it.
>
>   -- Jacques Ellul, The Technological Society
>
>
> --
> To unsubscribe, e-mail:
<mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:commons-dev-help@jakarta.apache.org>
>

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message