[jboss-dev-forums] [Design of POJO Server] - What is the point of this ObjectFactory
scott.stark@jboss.org
do-not-reply at jboss.com
Thu Oct 16 11:37:17 EDT 2008
The org.jnp.interfaces.LocalOnlyContextFactory has this 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());
| }
|
at first I thought it was returning the content of the URL found in the reference, but its actually just returning the binding in the root content for the URL name. This is just a LinkRef, no? What is an example of this factory being used?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182706#4182706
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182706
More information about the jboss-dev-forums
mailing list