/** * Deregisters the given provider from the given category. * * @param pProvider the provider instance * @param pCategory the category class * @return {@code true} if {@code pProvider} was previously registered in * the given category */ public boolean deregister(final Object pProvider, final Class<?> pCategory) { return getRegistry(pCategory).deregister(pProvider); }
private <T> boolean registerImpl(final Object pProvider, final Class<T> pCategory) { return getRegistry(pCategory).register(pCategory.cast(pProvider)); }
/** * Returns an {@code Iterator} containing all providers in the given * category. * <p/> * The iterator supports removal. * <p/> * <small> * NOTE: Removing a provider from the iterator, deregisters the current * provider (as returned by the last invocation of {@code next()}) from * {@code pCategory}, it does <em>not</em> remove the provider * from other categories in the registry. * </small> * * @param pCategory the category class * @return an {@code Iterator} containing all providers in the given * category. * @throws IllegalArgumentException if {@code pCategory} is not a valid * category in this registry */ protected <T> Iterator<T> providers(Class<T> pCategory) { return getRegistry(pCategory).providers(); }
/** * Deregisters the given provider from the given category. * * @param pProvider the provider instance * @param pCategory the category class * @return {@code true} if {@code pProvider} was previously registered in * the given category */ public boolean deregister(final Object pProvider, final Class<?> pCategory) { return getRegistry(pCategory).deregister(pProvider); }
/** * Deregisters the given provider from the given category. * * @param pProvider the provider instance * @param pCategory the category class * @return {@code true} if {@code pProvider} was previously registered in * the given category */ public boolean deregister(final Object pProvider, final Class<?> pCategory) { return getRegistry(pCategory).deregister(pProvider); }
/** * Deregisters the given provider from the given category. * * @param pProvider the provider instance * @param pCategory the category class * @return {@code true} if {@code pProvider} was previously registered in * the given category */ public boolean deregister(final Object pProvider, final Class<?> pCategory) { return getRegistry(pCategory).deregister(pProvider); }
private <T> boolean registerImpl(final Object pProvider, final Class<T> pCategory) { return getRegistry(pCategory).register(pCategory.cast(pProvider)); }
private <T> boolean registerImpl(final Object pProvider, final Class<T> pCategory) { return getRegistry(pCategory).register(pCategory.cast(pProvider)); }
private <T> boolean registerImpl(final Object pProvider, final Class<T> pCategory) { return getRegistry(pCategory).register(pCategory.cast(pProvider)); }
/** * Returns an {@code Iterator} containing all providers in the given * category. * <p/> * The iterator supports removal. * <p/> * <small> * NOTE: Removing a provider from the iterator, deregisters the current * provider (as returned by the last invocation of {@code next()}) from * {@code pCategory}, it does <em>not</em> remove the provider * from other categories in the registry. * </small> * * @param pCategory the category class * @return an {@code Iterator} containing all providers in the given * category. * @throws IllegalArgumentException if {@code pCategory} is not a valid * category in this registry */ protected <T> Iterator<T> providers(Class<T> pCategory) { return getRegistry(pCategory).providers(); }
/** * Returns an {@code Iterator} containing all providers in the given * category. * <p/> * The iterator supports removal. * <p/> * <small> * NOTE: Removing a provider from the iterator, deregisters the current * provider (as returned by the last invocation of {@code next()}) from * {@code pCategory}, it does <em>not</em> remove the provider * from other categories in the registry. * </small> * * @param pCategory the category class * @return an {@code Iterator} containing all providers in the given * category. * @throws IllegalArgumentException if {@code pCategory} is not a valid * category in this registry */ protected <T> Iterator<T> providers(Class<T> pCategory) { return getRegistry(pCategory).providers(); }
/** * Returns an {@code Iterator} containing all providers in the given * category. * <p/> * The iterator supports removal. * <p/> * <small> * NOTE: Removing a provider from the iterator, deregisters the current * provider (as returned by the last invocation of {@code next()}) from * {@code pCategory}, it does <em>not</em> remove the provider * from other categories in the registry. * </small> * * @param pCategory the category class * @return an {@code Iterator} containing all providers in the given * category. * @throws IllegalArgumentException if {@code pCategory} is not a valid * category in this registry */ protected <T> Iterator<T> providers(Class<T> pCategory) { return getRegistry(pCategory).providers(); }