org.jboss.ejb3.endpoint
Class AbstractEndpoint

java.lang.Object
  extended by org.jboss.ejb3.endpoint.AbstractEndpoint
All Implemented Interfaces:
Endpoint

public abstract class AbstractEndpoint
extends java.lang.Object
implements Endpoint

An implementation of Endpoint that holds the association with an optional SessionFactory.

Version:
$Revision: $
Author:
Carlo de Wolf

Constructor Summary
AbstractEndpoint()
           
AbstractEndpoint(SessionFactory factory)
           
 
Method Summary
 SessionFactory getSessionFactory()
          The SessionFactory associated with this Endpoint, if the Endpoint is session aware.
 boolean isSessionAware()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.ejb3.endpoint.Endpoint
invoke
 

Constructor Detail

AbstractEndpoint

public AbstractEndpoint()

AbstractEndpoint

public AbstractEndpoint(SessionFactory factory)
Method Detail

getSessionFactory

public SessionFactory getSessionFactory()
                                 throws java.lang.IllegalStateException
Description copied from interface: Endpoint
The SessionFactory associated with this Endpoint, if the Endpoint is session aware.

Specified by:
getSessionFactory in interface Endpoint
Returns:
the associated session factory
Throws:
java.lang.IllegalStateException - if this Endpoint is not session aware

isSessionAware

public boolean isSessionAware()
Specified by:
isSessionAware in interface Endpoint
Returns:
true if this Endpoint is session aware


Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.