jon * wrote:
> 
> Now, my only problem is trying to map stuff in memory to the various Peer
> classes...this is a problem i haven't been able to figure out how to solve
> yet...help on this is appreciated...yesterday, i thought it might be
> possible with introspection, but it is looking less and less likely...
> 
> it would be REALLY friggen cool if it was possible to dynamically generate
> Java code in memory...i hate the fact that it isn't possible...this would
> solve a lot of big problems like having to write out java code like JSP,
> Cocoon2, Town 2.0b1, etc does...
> 

I'm just thinking off the top of my head, but could templates help here some
how?
For example, you could have a generic Peer template that is filled in by the XML
map-

public class ${REPLACE}Peer extends BasePeer
{
        #for each column in map
            public static final String ${COLUMN} = ....
}

Or are you wanting to completely generate Peer classes in memory?


-- 
Dave
[EMAIL PROTECTED]
your flame > /dev/null


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to