Class PersistenceUnitBinder
- java.lang.Object
-
- org.glassfish.jersey.internal.inject.AbstractBinder
-
- org.glassfish.jersey.servlet.internal.PersistenceUnitBinder
-
- All Implemented Interfaces:
Binder
public class PersistenceUnitBinder extends AbstractBinder
Persistence unit
injection binder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
PersistenceUnitBinder.PersistenceUnitInjectionResolver
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PERSISTENCE_UNIT_PREFIX
Prefix of the persistence unit init param.private javax.servlet.ServletConfig
servletConfig
-
Constructor Summary
Constructors Constructor Description PersistenceUnitBinder(javax.servlet.ServletConfig servletConfig)
Creates a new binder forPersistenceUnitBinder.PersistenceUnitInjectionResolver
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure()
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 Detail
-
servletConfig
private final javax.servlet.ServletConfig servletConfig
-
PERSISTENCE_UNIT_PREFIX
public static final java.lang.String PERSISTENCE_UNIT_PREFIX
Prefix of the persistence unit init param.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PersistenceUnitBinder
public PersistenceUnitBinder(javax.servlet.ServletConfig servletConfig)
Creates a new binder forPersistenceUnitBinder.PersistenceUnitInjectionResolver
.- Parameters:
servletConfig
- servlet config to find persistence units.
-
-
Method Detail
-
configure
protected void configure()
Description copied from class:AbstractBinder
Implement to provide binding definitions using the exposed binding methods.- Specified by:
configure
in classAbstractBinder
-
-