[jboss-jira] [JBoss JIRA] Resolved: (JBNAME-20) Split out ObjectFactory implementation from LocalOnlyContextFactory
Scott M Stark (JIRA)
jira-events at lists.jboss.org
Wed Nov 5 14:45:35 EST 2008
[ https://jira.jboss.org/jira/browse/JBNAME-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott M Stark resolved JBNAME-20.
---------------------------------
Resolution: Done
This have been removed from LocalOnlyContextFactory, but not implemented elsewhere as the behavior is that of a simple LinkRef.
> Split out ObjectFactory implementation from LocalOnlyContextFactory
> -------------------------------------------------------------------
>
> Key: JBNAME-20
> URL: https://jira.jboss.org/jira/browse/JBNAME-20
> Project: JBoss Naming
> Issue Type: Task
> Components: jnp-client
> Affects Versions: 5.0.0.CR3
> Reporter: Scott M Stark
> Assignee: Scott M Stark
> Fix For: 5.0.0.GA
>
>
> The LocalOnlyContextFactory currently implements a URL content ObjectFactory for some reason:
> // ObjectFactory implementation ----------------------------------
> public Object getObjectInstance(Object obj,
> Name name,
> Context nameCtx,
> Hashtable environment)
> throws Exception
> {
> Context ctx = getInitialContext(environment);
> Reference ref = (Reference)obj;
> return ctx.lookup((String)ref.get("URL").getContent());
> }
> This should be in a separate URLContentObjectFactory bean
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list