org.apache.openejb.jee
Class ServiceRef

java.lang.Object
  extended by org.apache.openejb.jee.ServiceRef
All Implemented Interfaces:
Injectable, JndiReference, Keyable<String>

public class ServiceRef
extends Object
implements JndiReference

javaee6.xsd

Java class for service-refType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="service-refType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <group ref="{http://java.sun.com/xml/ns/javaee}descriptionGroup"/>
         <element name="service-ref-name" type="{http://java.sun.com/xml/ns/javaee}jndi-nameType"/>
         <element name="service-interface" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType"/>
         <element name="service-ref-type" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType" minOccurs="0"/>
         <element name="wsdl-file" type="{http://java.sun.com/xml/ns/javaee}xsdAnyURIType" minOccurs="0"/>
         <element name="jaxrpc-mapping-file" type="{http://java.sun.com/xml/ns/javaee}pathType" minOccurs="0"/>
         <element name="service-qname" type="{http://java.sun.com/xml/ns/javaee}xsdQNameType" minOccurs="0"/>
         <element name="port-component-ref" type="{http://java.sun.com/xml/ns/javaee}port-component-refType" maxOccurs="unbounded" minOccurs="0"/>
         <choice>
           <element name="handler" type="{http://java.sun.com/xml/ns/javaee}handlerType" maxOccurs="unbounded" minOccurs="0"/>
           <element name="handler-chains" type="{http://java.sun.com/xml/ns/javaee}handler-chainsType" minOccurs="0"/>
         </choice>
         <group ref="{http://java.sun.com/xml/ns/javaee}resourceGroup"/>
       </sequence>
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  TextMap description
           
protected  TextMap displayName
           
protected  List<Handler> handler
           
protected  HandlerChains handlerChains
           
protected  LocalCollection<Icon> icon
           
protected  String id
           
protected  Set<InjectionTarget> injectionTarget
           
protected  String jaxrpcMappingFile
           
protected  String lookupName
           
protected  String mappedName
           
protected  List<PortComponentRef> portComponentRef
           
protected  String serviceInterface
           
protected  QName serviceQname
           
protected  String serviceRefName
           
protected  String serviceRefType
           
protected  String wsdlFile
           
 
Constructor Summary
ServiceRef()
           
 
Method Summary
 HandlerChains getAllHandlers()
           
 String getDescription()
           
 Text[] getDescriptions()
           
 String getDisplayName()
           
 Text[] getDisplayNames()
           
 List<Handler> getHandler()
           
 HandlerChains getHandlerChains()
           
 Icon getIcon()
           
 Map<String,Icon> getIconMap()
           
 Collection<Icon> getIcons()
           
 String getId()
           
 Set<InjectionTarget> getInjectionTarget()
           
 String getJaxrpcMappingFile()
           
 String getKey()
          Gets the immutable key for this object.
 String getLookupName()
           
 String getMappedName()
           
 String getName()
           
 List<PortComponentRef> getPortComponentRef()
           
 String getServiceInterface()
           
 QName getServiceQname()
          Gets the value of the serviceQname property.
 String getServiceRefName()
           
 String getServiceRefType()
           
 String getType()
           
 String getWsdlFile()
           
 ServiceRef injectionTarget(Class<?> clazz, String property)
           
 ServiceRef injectionTarget(String className, String property)
           
 ServiceRef jaxrpcMappingFile(String jaxrpcMappingFile)
           
 ServiceRef lookup(String lookupName)
           
 ServiceRef mappedName(String mappedName)
           
 ServiceRef name(String serviceRefName)
           
 ServiceRef qname(QName serviceQname)
           
 void setDescriptions(Text[] text)
           
 void setDisplayNames(Text[] text)
           
 void setHandlerChains(HandlerChains value)
           
 void setId(String value)
           
 void setJaxrpcMappingFile(String value)
           
 void setLookupName(String lookupName)
           
 void setMappedName(String value)
           
 void setName(String name)
           
 void setServiceInterface(String value)
           
 void setServiceQname(QName value)
          Sets the value of the serviceQname property.
 void setServiceRefName(String value)
           
 void setServiceRefType(String value)
           
 void setType(String type)
           
 void setWsdlFile(String value)
           
 String toString()
           
 ServiceRef type(Class<?> serviceRefType)
           
 ServiceRef type(String serviceRefType)
           
 ServiceRef wsdl(String wsdlFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

description

protected TextMap description

displayName

protected TextMap displayName

icon

protected LocalCollection<Icon> icon

serviceRefName

protected String serviceRefName

serviceInterface

protected String serviceInterface

serviceRefType

protected String serviceRefType

wsdlFile

protected String wsdlFile

jaxrpcMappingFile

protected String jaxrpcMappingFile

serviceQname

protected QName serviceQname

portComponentRef

protected List<PortComponentRef> portComponentRef

handler

protected List<Handler> handler

handlerChains

protected HandlerChains handlerChains

mappedName

protected String mappedName

lookupName

protected String lookupName

injectionTarget

protected Set<InjectionTarget> injectionTarget

id

protected String id
Constructor Detail

ServiceRef

public ServiceRef()
Method Detail

name

public ServiceRef name(String serviceRefName)

type

public ServiceRef type(String serviceRefType)

type

public ServiceRef type(Class<?> serviceRefType)

wsdl

public ServiceRef wsdl(String wsdlFile)

qname

public ServiceRef qname(QName serviceQname)

jaxrpcMappingFile

public ServiceRef jaxrpcMappingFile(String jaxrpcMappingFile)

mappedName

public ServiceRef mappedName(String mappedName)

lookup

public ServiceRef lookup(String lookupName)

injectionTarget

public ServiceRef injectionTarget(String className,
                                  String property)

injectionTarget

public ServiceRef injectionTarget(Class<?> clazz,
                                  String property)

getName

public String getName()
Specified by:
getName in interface JndiReference

getKey

public String getKey()
Description copied from interface: Keyable
Gets the immutable key for this object.

Specified by:
getKey in interface Keyable<String>
Returns:
gets the immutable key for this object

getType

public String getType()
Specified by:
getType in interface JndiReference

setName

public void setName(String name)
Specified by:
setName in interface JndiReference

setType

public void setType(String type)
Specified by:
setType in interface JndiReference

getDescriptions

public Text[] getDescriptions()

setDescriptions

public void setDescriptions(Text[] text)

getDescription

public String getDescription()

getDisplayNames

public Text[] getDisplayNames()

setDisplayNames

public void setDisplayNames(Text[] text)

getDisplayName

public String getDisplayName()

getIcons

public Collection<Icon> getIcons()

getIconMap

public Map<String,Icon> getIconMap()

getIcon

public Icon getIcon()

getServiceRefName

public String getServiceRefName()

setServiceRefName

public void setServiceRefName(String value)

getServiceInterface

public String getServiceInterface()

setServiceInterface

public void setServiceInterface(String value)

getServiceRefType

public String getServiceRefType()

setServiceRefType

public void setServiceRefType(String value)

getWsdlFile

public String getWsdlFile()

setWsdlFile

public void setWsdlFile(String value)

getJaxrpcMappingFile

public String getJaxrpcMappingFile()

setJaxrpcMappingFile

public void setJaxrpcMappingFile(String value)

getServiceQname

public QName getServiceQname()
Gets the value of the serviceQname property.


setServiceQname

public void setServiceQname(QName value)
Sets the value of the serviceQname property.


getPortComponentRef

public List<PortComponentRef> getPortComponentRef()

getHandlerChains

public HandlerChains getHandlerChains()

setHandlerChains

public void setHandlerChains(HandlerChains value)

getHandler

public List<Handler> getHandler()

getAllHandlers

public HandlerChains getAllHandlers()

getMappedName

public String getMappedName()
Specified by:
getMappedName in interface JndiReference

setMappedName

public void setMappedName(String value)
Specified by:
setMappedName in interface JndiReference

getLookupName

public String getLookupName()
Specified by:
getLookupName in interface JndiReference

setLookupName

public void setLookupName(String lookupName)
Specified by:
setLookupName in interface JndiReference

getInjectionTarget

public Set<InjectionTarget> getInjectionTarget()
Specified by:
getInjectionTarget in interface Injectable

getId

public String getId()

setId

public void setId(String value)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.