/** * Create new empty component bag. * * @param registrationStrategy function driving the decision (based on the introspected * {@link org.glassfish.jersey.model.ContractProvider contract provider model}) whether * or not should the component class registration continue * towards a successful completion. * @return a new empty component bag. */ public static ComponentBag newInstance(Predicate<ContractProvider> registrationStrategy) { return new ComponentBag(registrationStrategy); }
/** * Create new empty component bag. * * @param registrationStrategy function driving the decision (based on the introspected * {@link org.glassfish.jersey.model.ContractProvider contract provider model}) whether * or not should the component class registration continue * towards a successful completion. * @return a new empty component bag. */ public static ComponentBag newInstance(Predicate<ContractProvider> registrationStrategy) { return new ComponentBag(registrationStrategy); }
/** * Get a copy of this component bag. * * @return component bag copy. */ public ComponentBag copy() { return new ComponentBag( registrationStrategy, new LinkedHashSet<>(classes), new LinkedHashSet<>(instances), new IdentityHashMap<>(models)); }
/** * Get a copy of this component bag. * * @return component bag copy. */ public ComponentBag copy() { return new ComponentBag( registrationStrategy, new LinkedHashSet<>(classes), new LinkedHashSet<>(instances), new IdentityHashMap<>(models)); }
/** * Create new empty component bag. * * @param registrationStrategy function driving the decision (based on the introspected * {@link org.glassfish.jersey.model.ContractProvider contract provider model}) whether * or not should the component class registration continue * towards a successful completion. * @return a new empty component bag. */ public static ComponentBag newInstance(Predicate<ContractProvider> registrationStrategy) { return new ComponentBag(registrationStrategy); }
/** * Create new empty component bag. * * @param registrationStrategy function driving the decision (based on the introspected * {@link org.glassfish.jersey.model.ContractProvider contract provider model}) whether * or not should the component class registration continue * towards a successful completion. * @return a new empty component bag. */ public static ComponentBag newInstance(Predicate<ContractProvider> registrationStrategy) { return new ComponentBag(registrationStrategy); }
/** * Create new empty component bag. * * @param registrationStrategy function driving the decision (based on the introspected * {@link org.glassfish.jersey.model.ContractProvider contract provider model}) whether * or not should the component class registration continue * towards a successful completion. * @return a new empty component bag. */ public static ComponentBag newInstance(Predicate<ContractProvider> registrationStrategy) { return new ComponentBag(registrationStrategy); }
/** * Create new empty component bag. * * @param registrationStrategy function driving the decision (based on the introspected * {@link org.glassfish.jersey.model.ContractProvider contract provider model}) whether * or not should the component class registration continue * towards a successful completion. * @return a new empty component bag. */ public static ComponentBag newInstance(Predicate<ContractProvider> registrationStrategy) { return new ComponentBag(registrationStrategy); }
/** * Create new empty component bag. * * @param registrationStrategy function driving the decision (based on the introspected * {@link org.glassfish.jersey.model.ContractProvider contract provider model}) whether * or not should the component class registration continue * towards a successful completion. * @return a new empty component bag. */ public static ComponentBag newInstance(Predicate<ContractProvider> registrationStrategy) { return new ComponentBag(registrationStrategy); }
/** * Get a copy of this component bag. * * @return component bag copy. */ public ComponentBag copy() { return new ComponentBag( registrationStrategy, new LinkedHashSet<>(classes), new LinkedHashSet<>(instances), new IdentityHashMap<>(models)); }
/** * Get a copy of this component bag. * * @return component bag copy. */ public ComponentBag copy() { return new ComponentBag( registrationStrategy, new LinkedHashSet<>(classes), new LinkedHashSet<>(instances), new IdentityHashMap<>(models)); }
/** * Get a copy of this component bag. * * @return component bag copy. */ public ComponentBag copy() { return new ComponentBag( registrationStrategy, Sets.newLinkedHashSet(classes), Sets.newLinkedHashSet(instances), new IdentityHashMap<Class<?>, ContractProvider>(models)); }
/** * Get a copy of this component bag. * * @return component bag copy. */ public ComponentBag copy() { return new ComponentBag( registrationStrategy, Sets.newLinkedHashSet(classes), Sets.newLinkedHashSet(instances), new IdentityHashMap<Class<?>, ContractProvider>(models)); }
/** * Get a copy of this component bag. * * @return component bag copy. */ public ComponentBag copy() { return new ComponentBag( registrationStrategy, Sets.newLinkedHashSet(classes), Sets.newLinkedHashSet(instances), new IdentityHashMap<Class<?>, ContractProvider>(models)); }