Class EjbSessionDescriptor

    • Constructor Detail

      • EjbSessionDescriptor

        public EjbSessionDescriptor()
        Default constructor.
    • Method Detail

      • setPassivationCapable

        public void setPassivationCapable​(boolean passivationCapable)
      • isPassivationCapableSet

        public boolean isPassivationCapableSet()
      • getType

        public String getType()
        Returns the type of this bean - always "Session".
        Specified by:
        getType in interface EjbDescriptor
      • getSessionType

        public String getSessionType()
        Returns the string STATELESS or STATEFUL according as to whether the bean is stateless or stateful.
        Specified by:
        getSessionType in interface EjbSessionDescriptor
      • setSessionType

        public void setSessionType​(String sessionType)
        Accepts the Strings STATELESS / STATEFUL / SINGLETON
      • isSessionTypeSet

        public boolean isSessionTypeSet()
        Useful for certain annotation / .xml processing. ejb-jar.xml might not set if it's only being used for sparse overriding.
        Returns:
      • setClustered

        public void setClustered​(boolean clustered)
      • setClusteredKeyValue

        public void setClusteredKeyValue​(String clusteredKeyValue)
      • dontCallPostConstructOnAttach

        public boolean dontCallPostConstructOnAttach()
      • setDontCallPostConstructOnAttach

        public void setDontCallPostConstructOnAttach​(boolean dontCallPostConstructOnAttach)
      • setDontCallPreDestroyOnDetach

        public void setDontCallPreDestroyOnDetach​(boolean dontCallPreDestroyOnDetach)
      • dontCallPreDestroyOnDetach

        public boolean dontCallPreDestroyOnDetach()
      • setTransactionType

        public void setTransactionType​(String transactionType)
        Sets the transaction type for this bean. Must be either BEAN_TRANSACTION_TYPE or CONTAINER_TRANSACTION_TYPE.
        Specified by:
        setTransactionType in class EjbDescriptor
      • isStateless

        public boolean isStateless()
        Returns true if I am describing a stateless session bean.
        Specified by:
        isStateless in interface EjbSessionDescriptor
      • hasAsynchronousMethods

        public boolean hasAsynchronousMethods()
      • addAsynchronousMethod

        public void addAsynchronousMethod​(MethodDescriptor m)
      • isAsynchronousMethod

        public boolean isAsynchronousMethod​(Method m)
      • setStatefulTimeout

        public void setStatefulTimeout​(Long value,
                                       TimeUnit unit)
      • hasStatefulTimeout

        public boolean hasStatefulTimeout()
      • getStatefulTimeoutValue

        public Long getStatefulTimeoutValue()
      • getStatefulTimeoutUnit

        public TimeUnit getStatefulTimeoutUnit()
      • getRemovalInfo

        public EjbRemovalInfo getRemovalInfo​(MethodDescriptor method)
        Returns:
        remove method info for the given method or null if the given method is not a remove method for this stateful session bean.
      • addRemoveMethod

        public void addRemoveMethod​(EjbRemovalInfo removalInfo)
      • hasInitMethods

        public boolean hasInitMethods()
      • addInitMethod

        public void addInitMethod​(EjbInitInfo initInfo)
      • hasPostActivateMethod

        public boolean hasPostActivateMethod()
      • hasPrePassivateMethod

        public boolean hasPrePassivateMethod()
      • getPossibleTransactionAttributes

        public Vector getPossibleTransactionAttributes()
        Description copied from class: EjbDescriptor
        Returns the set of transaction attributes that can be assigned to methods of this ejb when in CMT mode. Elements are of type ContainerTransaction
        Overrides:
        getPossibleTransactionAttributes in class EjbDescriptor
      • addAfterBeginDescriptor

        public void addAfterBeginDescriptor​(MethodDescriptor m)
      • addBeforeCompletionDescriptor

        public void addBeforeCompletionDescriptor​(MethodDescriptor m)
      • addAfterCompletionDescriptor

        public void addAfterCompletionDescriptor​(MethodDescriptor m)
      • setAfterBeginMethodIfNotSet

        public void setAfterBeginMethodIfNotSet​(MethodDescriptor m)
        Set the Method annotated @AfterBegin.
      • getAfterBeginMethod

        public MethodDescriptor getAfterBeginMethod()
        Returns the Method annotated @AfterBegin.
      • setBeforeCompletionMethodIfNotSet

        public void setBeforeCompletionMethodIfNotSet​(MethodDescriptor m)
        Set the Method annotated @BeforeCompletion.
      • getBeforeCompletionMethod

        public MethodDescriptor getBeforeCompletionMethod()
        Returns the Method annotated @AfterBegin.
      • setAfterCompletionMethodIfNotSet

        public void setAfterCompletionMethodIfNotSet​(MethodDescriptor m)
        Set the Method annotated @AfterCompletion.
      • getAfterCompletionMethod

        public MethodDescriptor getAfterCompletionMethod()
        Returns the Method annotated @AfterCompletion.
      • getInitOnStartup

        public boolean getInitOnStartup()
      • setInitOnStartup

        public void setInitOnStartup​(boolean flag)
      • setInitOnStartupIfNotAlreadySet

        public void setInitOnStartupIfNotAlreadySet​(boolean flag)
      • getDependsOn

        public String[] getDependsOn()
      • hasDependsOn

        public boolean hasDependsOn()
      • setDependsOn

        public void setDependsOn​(String[] dep)
      • setDependsOnIfNotSet

        public void setDependsOnIfNotSet​(String[] dep)
      • hasContainerManagedConcurrency

        public boolean hasContainerManagedConcurrency()
      • hasBeanManagedConcurrency

        public boolean hasBeanManagedConcurrency()
      • addReadLockMethod

        public void addReadLockMethod​(MethodDescriptor methodDescriptor)
      • addWriteLockMethod

        public void addWriteLockMethod​(MethodDescriptor methodDescriptor)
      • addAccessTimeoutMethod

        public void addAccessTimeoutMethod​(MethodDescriptor methodDescriptor,
                                           long value,
                                           TimeUnit unit)
      • print

        public void print​(StringBuilder toStringBuilder)
        Returns a formatted String of the attributes of this object.
        Overrides:
        print in class EjbDescriptor
      • getPortableJndiName

        public String getPortableJndiName​(String clientViewType)
        Return the fully-qualified portable JNDI name for a given client view (Remote, Local, or no-interface).
        Specified by:
        getPortableJndiName in interface EjbSessionDescriptor