There's a factory method, createChildContext() which you can override to
create your own context...

public class MyContext extends JellyContext {

    public MyContext(JellyContext parent) {
        super(parent);
    }

    protected JellyContext createChildContext() {
        return new MyContext(this);
    }
}

Note that soon we'll be refactoring the variable scope logic out of the
JellyContext so that you could just provide your own variable Scope
implementation to change how variables behave. Thats typically the usual
reason folks need their own JellyContext implementation

There's more details of this here...

http://jira.werken.com/secure/ViewIssue.jspa?key=JELLY-1

James
-------
http://radio.weblogs.com/0112098/
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 05, 2002 1:13 PM
Subject: [jelly] Subclassing JellyContext


Hi,

Is there any way I can override the creation of JellyContext instances so I
can put in my own subclass?

Thanks,
Mike.

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

__________________________________________________
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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to