Class ServiceRef
java.lang.Object
javax.naming.Reference
org.apache.naming.AbstractRef
org.apache.naming.ServiceRef
- All Implemented Interfaces:
Serializable, Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault factory for this reference.static final StringJaxrpcmapping address type.static final Stringport-component-ref/port-component-link address type.static final StringService Classname address type.static final StringService local part address type.static final StringServiceQname address type.static final Stringport-component-ref/service-endpoint-interface address type.static final StringWsdl Location address type.Fields inherited from class Reference
addrs, classFactory, classFactoryLocation, className -
Constructor Summary
ConstructorsConstructorDescriptionServiceRef(String refname, String serviceInterface, String[] serviceQname, String wsdl, String jaxrpcmapping) Creates a ServiceRef with the given parameters and no factory information.ServiceRef(String refname, String serviceInterface, String[] serviceQname, String wsdl, String jaxrpcmapping, String factory, String factoryLocation) Creates a ServiceRef with the given parameters and factory information. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHandler(HandlerRef handler) Adds a handler reference to the list.protected StringReturns the default factory class name.Add and Get Handlers classes.intReturns the number of handlers in the list.Methods inherited from class AbstractRef
getFactoryClassName, toString
-
Field Details
-
DEFAULT_FACTORY
-
SERVICE_INTERFACE
-
SERVICE_NAMESPACE
-
SERVICE_LOCAL_PART
-
WSDL
-
JAXRPCMAPPING
-
PORTCOMPONENTLINK
port-component-ref/port-component-link address type.- See Also:
-
SERVICEENDPOINTINTERFACE
port-component-ref/service-endpoint-interface address type.- See Also:
-
-
Constructor Details
-
ServiceRef
public ServiceRef(String refname, String serviceInterface, String[] serviceQname, String wsdl, String jaxrpcmapping) Creates a ServiceRef with the given parameters and no factory information.- Parameters:
refname- the reference nameserviceInterface- the service interface class nameserviceQname- the service QName (namespace and local part)wsdl- the WSDL locationjaxrpcmapping- the JAX-RPC mapping
-
ServiceRef
public ServiceRef(String refname, String serviceInterface, String[] serviceQname, String wsdl, String jaxrpcmapping, String factory, String factoryLocation) Creates a ServiceRef with the given parameters and factory information.- Parameters:
refname- the reference name - unusedserviceInterface- the service interface class nameserviceQname- the service QName (namespace and local part)wsdl- the WSDL locationjaxrpcmapping- the JAX-RPC mappingfactory- the factory class namefactoryLocation- the factory location
-
-
Method Details
-
getHandler
-
getHandlersSize
public int getHandlersSize()Returns the number of handlers in the list.- Returns:
- the number of handlers
-
addHandler
Adds a handler reference to the list.- Parameters:
handler- the handler reference to add
-
getDefaultFactoryClassName
Description copied from class:AbstractRefReturns the default factory class name.- Specified by:
getDefaultFactoryClassNamein classAbstractRef- Returns:
- the default factory class name
-