Module org.eclipse.persistence.jpa
Class JPAEntityListenerHolder
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.listeners.JPAEntityListenerHolder
- All Implemented Interfaces:
Serializable
,Cloneable
,SerializableDescriptorEventHolder
public class JPAEntityListenerHolder
extends Object
implements SerializableDescriptorEventHolder, Cloneable
- See Also:
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) 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 serializablevoid
convertToSerializableMethods
(Map<String, List<Method>> methods) void
setIsDefaultListener
(Boolean isDefaultListener)
-
Field Details
-
listenerClassName
-
isDefaultListener
-
listener
-
serializableMethods
-
-
Constructor Details
-
JPAEntityListenerHolder
public JPAEntityListenerHolder()Default constructor.
-
-
Method Details
-
setIsDefaultListener
-
addListenerToEventManager
public void addListenerToEventManager(ClassDescriptor descriptor, AbstractSession session, ClassLoader loader) - Specified by:
addListenerToEventManager
in interfaceSerializableDescriptorEventHolder
-
constructListenerInstance
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
convertToSerializableMethods
-
addEventMethod
INTERNAL: You can have multiple event methods for the same event, however, only one event method per class is permitted. -
convertToMethods
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 -
getMethods
-