Java Persistence API (JPA) Extensions Reference for EclipseLink, Release 2.5
  Go To Table Of Contents
 Search
 PDFComments
Comments


session.customizer

Use eclipselink.session.customizer to specify an EclipseLink session customizer class, a Java class that implements the org.eclipse.persistence.config.SessionCustomizer interface and provides a default (zero-argument) constructor.


Values

Table 5-84 describes this persistence property's values.

Table 5-84 Valid Values for session.customizer

Value Description

class name

Fully qualified class name of a SessionCustomizer class



Usage

You can use the customize method of the class (which takes an org.eclipse.persistence.sessions.Session) to programmatically access advanced EclipseLink session API.


Examples

Example 5-83 shows how to use this property in the persistence.xml file.

Example 5-83 Using session.customizer in persistence.xml

<property name="eclipselink.session.customizer" value="acme.sessions.MySessionCustomizer"/>

Example 5-84 shows how to use this property in a property map.

Example 5-84 Using session.customizer in Property Map

import org.eclipse.persistence.config.PersistenceUnitProperties;propertiesMap.put(PersistenceUnitProperties.SESSION_CUSTOMIZER, "acme.sessions.MySessionCustomizer");


See Also

For more information, see: