Message:
The following issue has been closed.
Resolver: dion gillard
Date: Tue, 7 Sep 2004 12:18 AM
Sounds like the method isn't needed.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/JELLY-84
Here is an overview of the issue:
---------------------------------------------------------------------
Key: JELLY-84
Summary: Please add setFactory method to ComponentTag
Type: Improvement
Status: Closed
Priority: Minor
Resolution: WON'T FIX
Project: jelly
Components:
taglib.swing
Assignee:
Reporter: Scott Howlett
Created: Fri, 5 Sep 2003 1:07 AM
Updated: Tue, 7 Sep 2004 12:18 AM
Description:
ComponentTag requires a Factory to be passed in via its constructor. This places
restrictions on the kind of Factory that can be used.
I have a class drived from ComponentTag that wants to pass in a Factory that uses info
from the derived class, something like this:
class MyTag extends ComponentTag {
private String foo;
public MyTag() {
super(new Factory() {
public Object newInstance(){
return new MyComponent(foo);
});
}
}
That won't work, but if I had a setFactory() method, I could just do this:
public MyTag() {
setFactory(new Factory() {
public Object newInstance(){
return new MyComponent(foo);
});
}
which would work just fine.
Thanks,
Scott
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]