public class JPAEntityListenerHolder extends Object implements SerializableDescriptorEventHolder, Cloneable
| Modifier and Type | Field and Description |
|---|---|
Boolean |
isDefaultListener |
DescriptorEventListener |
listener |
String |
listenerClassName |
Map<String,List<MethodSerialImpl>> |
serializableMethods |
| Constructor and Description |
|---|
JPAEntityListenerHolder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventMethod(String event,
Method method)
INTERNAL:
You can have multiple event methods for the same event, however, only
one event method per class is permitted.
|
void |
addListenerToEventManager(ClassDescriptor descriptor,
AbstractSession session,
ClassLoader loader) |
protected Object |
clone() |
protected Object |
constructListenerInstance(Class listenerClass) |
Map<String,List<Method>> |
convertToMethods(ClassLoader loader)
INTERNAL:
This returns a hashtable of methods which are used in a JPA EntityListener instance, built from
the MethodSerialImpl representation since Methods are not serializable
|
void |
convertToSerializableMethods(Map<String,List<Method>> methods) |
Map<String,List<MethodSerialImpl>> |
getMethods() |
void |
setIsDefaultListener(Boolean isDefaultListener) |
public String listenerClassName
public Boolean isDefaultListener
public transient DescriptorEventListener listener
public Map<String,List<MethodSerialImpl>> serializableMethods
public void setIsDefaultListener(Boolean isDefaultListener)
public void addListenerToEventManager(ClassDescriptor descriptor, AbstractSession session, ClassLoader loader)
addListenerToEventManager in interface SerializableDescriptorEventHolderprotected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic void convertToSerializableMethods(Map<String,List<Method>> methods)
public void addEventMethod(String event, Method method)
public Map<String,List<Method>> convertToMethods(ClassLoader loader)
loader - public Map<String,List<MethodSerialImpl>> getMethods()
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.