August 2018
Intermediate to advanced
314 pages
8h 9m
English
In the following code, we have the qualify used to inject the PersistenceManager class:
import javax.inject.Qualifier;import static java.lang.annotation.ElementType.FIELD;import static java.lang.annotation.ElementType.METHOD;import static java.lang.annotation.ElementType.PARAMETER;import static java.lang.annotation.ElementType.TYPE;import static java.lang.annotation.RetentionPolicy.RUNTIME;import java.lang.annotation.Retention;import java.lang.annotation.Target;@Qualifier@Retention(RUNTIME)@Target({TYPE, METHOD, FIELD, PARAMETER})public @interface Persistence {}
Looking at the following code, we can see that we have the PersistenceManagerFactory class, which is responsible for creating new ...
Read now
Unlock full access