org.apache.tuscany.sca.binding.ejb.impl
Class EJBBindingImpl

java.lang.Object
  extended by org.apache.tuscany.sca.binding.ejb.impl.EJBBindingImpl
All Implemented Interfaces:
java.lang.Cloneable, Base, Binding, EJBBinding

public class EJBBindingImpl
extends java.lang.Object
implements EJBBinding

An implementation of EJBBinding.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.tuscany.sca.binding.ejb.EJBBinding
EJBBinding.EJBVersion, EJBBinding.SessionType
 
Field Summary
 
Fields inherited from interface org.apache.tuscany.sca.binding.ejb.EJBBinding
BINDING_EJB, BINDING_EJB_QNAME, EJB_LINK_NAME, EJB_VERSION, HOME_INTERFACE, NAME, POLICY_SETS, REQUIRES, SESSION_TYPE, URI
 
Constructor Summary
EJBBindingImpl()
          Constructor
 
Method Summary
 java.lang.Object clone()
          Clone the binding
 java.lang.String getEjbLinkName()
          get ejb-link-name
 EJBBinding.EJBVersion getEjbVersion()
           
 java.lang.String getHomeInterface()
          Gets the homeInterface.
 java.lang.String getName()
          Returns the binding name.
 java.lang.String getRequires()
           
 EJBBinding.SessionType getSessionType()
           
 java.lang.String getURI()
          Returns the binding URI.
 boolean isUnresolved()
          Returns true if the model element is unresolved.
 void setEjbLinkName(java.lang.String ejbLinkName)
          Set ejb-link-name
 void setEjbVersion(EJBBinding.EJBVersion ejb_version_enum)
           
 void setHomeInterface(java.lang.String homeInterface)
          Set homeInterface
 void setName(java.lang.String name)
          Sets the binding name.
 void setRequires(java.lang.String requires)
           
 void setSessionType(EJBBinding.SessionType ejb_version_enum)
           
 void setUnresolved(boolean unresolved)
          Sets whether the model element is unresolved.
 void setURI(java.lang.String uri)
          Sets the binding URI.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBBindingImpl

public EJBBindingImpl()
Constructor

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone the binding

Specified by:
clone in interface Binding
Overrides:
clone in class java.lang.Object
Returns:
Throws:
java.lang.CloneNotSupportedException

getHomeInterface

public java.lang.String getHomeInterface()
Gets the homeInterface.

Specified by:
getHomeInterface in interface EJBBinding
Returns:
home interface of the service binding

setHomeInterface

public void setHomeInterface(java.lang.String homeInterface)
Set homeInterface

Specified by:
setHomeInterface in interface EJBBinding
Parameters:
homeInterface -

getEjbLinkName

public java.lang.String getEjbLinkName()
get ejb-link-name

Specified by:
getEjbLinkName in interface EJBBinding
Returns:
ejb-link-name

setEjbLinkName

public void setEjbLinkName(java.lang.String ejbLinkName)
Set ejb-link-name

Specified by:
setEjbLinkName in interface EJBBinding
Parameters:
ejb-link-name -

getName

public java.lang.String getName()
Returns the binding name.

Specified by:
getName in interface Binding
Returns:
the binding name

getURI

public java.lang.String getURI()
Returns the binding URI.

Specified by:
getURI in interface Binding
Returns:
the binding URI

setName

public void setName(java.lang.String name)
Sets the binding name.

Specified by:
setName in interface Binding
Parameters:
name - the binding name

setURI

public void setURI(java.lang.String uri)
Sets the binding URI.

Specified by:
setURI in interface Binding
Parameters:
uri - the binding URI

isUnresolved

public boolean isUnresolved()
Description copied from interface: Base
Returns true if the model element is unresolved.

Specified by:
isUnresolved in interface Base
Returns:
true if the model element is unresolved.

setUnresolved

public void setUnresolved(boolean unresolved)
Description copied from interface: Base
Sets whether the model element is unresolved.

Specified by:
setUnresolved in interface Base
Parameters:
unresolved - whether the model element is unresolved

setSessionType

public void setSessionType(EJBBinding.SessionType ejb_version_enum)
Specified by:
setSessionType in interface EJBBinding

setEjbVersion

public void setEjbVersion(EJBBinding.EJBVersion ejb_version_enum)
Specified by:
setEjbVersion in interface EJBBinding

setRequires

public void setRequires(java.lang.String requires)
Specified by:
setRequires in interface EJBBinding

getSessionType

public EJBBinding.SessionType getSessionType()
Specified by:
getSessionType in interface EJBBinding

getEjbVersion

public EJBBinding.EJBVersion getEjbVersion()
Specified by:
getEjbVersion in interface EJBBinding

getRequires

public java.lang.String getRequires()
Specified by:
getRequires in interface EJBBinding