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 unitinjection binder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classPersistenceUnitBinder.PersistenceUnitInjectionResolver
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPERSISTENCE_UNIT_PREFIXPrefix of the persistence unit init param.private javax.servlet.ServletConfigservletConfig
-
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 voidconfigure()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:AbstractBinderImplement to provide binding definitions using the exposed binding methods.- Specified by:
configurein classAbstractBinder
-
-