You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ji...@apache.org on 2004/06/14 17:06:10 UTC
[jira] Commented: (JAMES-297) Expose component manager in org.apache.james.James to support Avalon powered Mailets
The following comment has been added to this issue:
Author: Noel J. Bergman
Created: Mon, 14 Jun 2004 8:05 AM
Body:
"We are creating mailets that relies on Avalon components to provide services."
Don't. The ability for mailets to see Avalon will be curtailed, if not totally removed. Services for mailets will be exposed via JNDI. Avalon is a runtime environment for James, and is *NOT* for Mailets.
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/JAMES-297?page=comments#action_36149
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/JAMES-297
Here is an overview of the issue:
---------------------------------------------------------------------
Key: JAMES-297
Summary: Expose component manager in org.apache.james.James to support Avalon powered Mailets
Type: Improvement
Status: Unassigned
Priority: Minor
Project: James
Components:
James Core
Versions:
3.0
Assignee:
Reporter: Albert Kwong
Created: Sun, 13 Jun 2004 11:54 PM
Updated: Mon, 14 Jun 2004 8:05 AM
Environment: Any
Description:
We are creating mailets that relies on Avalon components to provide services. There doesn't seem to be any existing interface for accomplishing this task. Thus, we suggest to add the resolve (key) and release (obj) methods.
If we can add the methods to the MailetContext interface, that would be even better of course. :)
Example (org.apache.james.James)
/**
* Looks up an Avalon component.
*/
public Object resolve (String key) throws MessagingException
{
try
{
return compMgr.lookup (key);
}
catch (ServiceException e) { throw new MessagingException ("Failed to lookup component. key='" + key + "'"); }
}
/**
* Releases an Avalon component.
*/
public void release (Object obj)
{
compMgr.release (obj);
}
---------------------------------------------------------------------
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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org