public abstract class ForwardingEjbDescriptor<T> extends Object implements EjbDescriptor<T>
EjbDescriptor
which forwards all its method calls to another EjbDescriptor
. Subclasses
should override one or more methods to modify the behavior of the backing EjbDescriptor
as desired per the decorator pattern.Constructor and Description |
---|
ForwardingEjbDescriptor() |
Modifier and Type | Method and Description |
---|---|
protected abstract EjbDescriptor<T> |
delegate() |
boolean |
equals(Object obj) |
Class<T> |
getBeanClass()
Gets the EJB type
|
String |
getEjbName()
Get the EJB name
|
Collection<BusinessInterfaceDescriptor<?>> |
getLocalBusinessInterfaces()
Gets the local business interfaces of the EJB
|
Collection<BusinessInterfaceDescriptor<?>> |
getRemoteBusinessInterfaces()
Gets the remote business interfaces of the EJB
|
Collection<Method> |
getRemoveMethods()
Get the remove methods of the EJB
|
int |
hashCode() |
boolean |
isMessageDriven()
Indicates if the EJB is an MDB
|
boolean |
isPassivationCapable()
Indicates if the EJB is passivation capable.
|
boolean |
isSingleton()
Indicates if the bean is a EJB 3.1 Singleton session bean
|
boolean |
isStateful()
Indicates if the EJB is a stateful session bean
|
boolean |
isStateless()
Indicates if the bean is a stateless session bean
|
String |
toString() |
protected abstract EjbDescriptor<T> delegate()
public Collection<BusinessInterfaceDescriptor<?>> getLocalBusinessInterfaces()
EjbDescriptor
getLocalBusinessInterfaces
in interface EjbDescriptor<T>
public Collection<BusinessInterfaceDescriptor<?>> getRemoteBusinessInterfaces()
EjbDescriptor
getRemoteBusinessInterfaces
in interface EjbDescriptor<T>
public Collection<Method> getRemoveMethods()
EjbDescriptor
getRemoveMethods
in interface EjbDescriptor<T>
public Class<T> getBeanClass()
EjbDescriptor
getBeanClass
in interface EjbDescriptor<T>
public String getEjbName()
EjbDescriptor
getEjbName
in interface EjbDescriptor<T>
public boolean isMessageDriven()
EjbDescriptor
isMessageDriven
in interface EjbDescriptor<T>
public boolean isSingleton()
EjbDescriptor
isSingleton
in interface EjbDescriptor<T>
public boolean isStateful()
EjbDescriptor
isStateful
in interface EjbDescriptor<T>
public boolean isStateless()
EjbDescriptor
isStateless
in interface EjbDescriptor<T>
public boolean isPassivationCapable()
EjbDescriptor
Indicates if the EJB is passivation capable.
passivationCapable
element of the
Stateful
annotation is set to false or the passivation-capable
element of the session
deployment descriptor element is set to falseisPassivationCapable
in interface EjbDescriptor<T>
Copyright © 2008-2015. All Rights Reserved.