Class PersistenceUnitBinder
java.lang.Object
org.glassfish.jersey.internal.inject.AbstractBinder
org.glassfish.jersey.servlet.internal.PersistenceUnitBinder
- All Implemented Interfaces:
Binder
Persistence unit
injection binder.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Prefix of the persistence unit init param.private final javax.servlet.ServletConfig
-
Constructor Summary
ConstructorsConstructorDescriptionPersistenceUnitBinder
(javax.servlet.ServletConfig servletConfig) Creates a new binder forPersistenceUnitBinder.PersistenceUnitInjectionResolver
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Implement to provide binding definitions using the exposed binding methods.Methods inherited from class org.glassfish.jersey.internal.inject.AbstractBinder
bind, bind, bind, bindAsContract, bindAsContract, bindAsContract, bindFactory, bindFactory, bindFactory, createManagedInstanceProvider, getBindings, install
-
Field Details
-
servletConfig
private final javax.servlet.ServletConfig servletConfig -
PERSISTENCE_UNIT_PREFIX
Prefix of the persistence unit init param.- See Also:
-
-
Constructor Details
-
PersistenceUnitBinder
public PersistenceUnitBinder(javax.servlet.ServletConfig servletConfig) Creates a new binder forPersistenceUnitBinder.PersistenceUnitInjectionResolver
.- Parameters:
servletConfig
- servlet config to find persistence units.
-
-
Method Details
-
configure
protected void configure()Description copied from class:AbstractBinder
Implement to provide binding definitions using the exposed binding methods.- Specified by:
configure
in classAbstractBinder
-