tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40645] New: - factory "parameter" in ResourceParams block
Date Fri, 29 Sep 2006 17:09:40 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40645>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40645

           Summary: factory "parameter" in ResourceParams block
           Product: Tomcat 5
           Version: 5.0.28
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: sfisque@chrome.com


enhancement request:

the manner of configuring a Resource has a questionable mechanism, where in
addition to the attributes of the Bean being instantiated, we have to supply a
non-bean parameter for the Factory.  e.g.

	<parameter>
		<name>factory</name>
		<value>org.apache.naming.factory.BeanFactory</value>
	</parameter>

it would be more intuitive if the "factory" was an attribute of the
ResourceParams tag and not a parameter, since it is outside of the scope of the
"bean" being instantiated and within the scope of the Factory mechanism provided
by Tomcat.

e.g.

instead of:

	<ResourceParams name="Mailer/Config">
		<parameter>
			<name>factory</name>
			<value>org.apache.naming.factory.BeanFactory</value>
		</parameter>
		...
	</ResourceParams>

we could have

	<ResourceParams name="Mailer/Config"
factory="org.apache.naming.factory.BeanFactory">

		...

	</ResourceParams>


cheers.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message