Uploaded image for project: 'JBoss Naming'
  1. JBoss Naming
  2. JBNAME-20

Split out ObjectFactory implementation from LocalOnlyContextFactory

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 5.0.0.GA
    • 5.0.0.CR3
    • jnp-client
    • None
    • Documentation (Ref Guide, User Guide, etc.)

      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

              starksm64 Scott Stark (Inactive)
              starksm64 Scott Stark (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: