org.javabits.yar.guice.RegistryBinder Maven / Gradle / Ivy
package org.javabits.yar.guice;
import com.google.inject.Binder;
import com.google.inject.Key;
import com.google.inject.TypeLiteral;
import com.google.inject.matcher.Matcher;
/**
* This interface is responsible to provide access to the registry
* through the Guice EDSL.
*
* @author Romain Gilles
* Date: 10/9/13
*/
public interface RegistryBinder extends Binder {
void bindRegistryListener(Matcher> matcher, Key extends RegistryListener super T>> key);
void bindRegistryListener(Matcher> matcher, RegistryListener super T> listener);
RegistrationLinkedBindingBuilder register(Key key);
RegistrationAnnotatedBindingBuilder register(TypeLiteral typeLiteral);
RegistrationAnnotatedBindingBuilder register(Class type);
@Override
RegistryLinkedBindingBuilder bind(Key key);
@Override
RegistryAnnotatedBindingBuilder bind(TypeLiteral typeLiteral);
@Override
RegistryAnnotatedBindingBuilder bind(Class clazz);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy