Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.webservice.client
Class ServiceObjectFactory

    java.lang.Object
      org.jboss.webservice.client.ServiceObjectFactory

All Implemented Interfaces:
  ObjectFactory

public class ServiceObjectFactory
extends Object
implements ObjectFactory

This ServiceObjectFactory reconstructs a javax.xml.rpc.Service for a given WSDL when the webservice client does a JNDI lookup

It uses the information provided by the service-ref element in application-client.xml

Since:
  15-April-2004
Author:
  Thomas.Diesler@jboss.org

Constructor Summary
`ServiceObjectFactory()`

Method Summary
`Object` | `getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment)` Creates an object using the location or reference information specified.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ServiceObjectFactory

    public ServiceObjectFactory()

Method Detail

### getObjectInstance

    public Object getObjectInstance(Object obj,
                                    Name name,
                                    Context nameCtx,
                                    Hashtable environment)
                             throws Exception

  Creates an object using the location or reference information specified.

  Specified by:
    `getObjectInstance` in interface `ObjectFactory`
  Parameters:
    `obj` - The possibly null object containing location or reference information that can be used in creating an object.
    `name` - The name of this object relative to `nameCtx`, or null if no name is specified.
    `nameCtx` - The context relative to which the `name` parameter is specified, or null if `name` is relative to the default initial context.
    `environment` - The possibly null environment that is used in creating the object.
  Returns:
    The object created; null if an object cannot be created.
  Throws:
    `Exception` - if this object factory encountered an exception while attempting to create an object, and no other object factories are to be tried.
  See Also:
    `NamingManager.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)`, `NamingManager.getURLContext(java.lang.String, java.util.Hashtable)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002 JBoss Group, LLC. All Rights Reserved.