public final class MycilaGuice extends Object
| Modifier and Type | Method and Description |
|---|---|
<T> MycilaGuice |
bind(Class<T> type,
T instance) |
<A extends Annotation> |
bindAnnotationInjector(Class<A> annotationType,
Class<? extends KeyProvider<A>> providerClass) |
MycilaGuice |
bindInterceptor(Class<?> interf,
String methodName,
Class<?>[] params,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
MycilaGuice |
bindInterceptor(com.google.inject.matcher.Matcher<? super Class<?>> classMatcher,
com.google.inject.matcher.Matcher<? super Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
com.google.inject.Scope |
concurrentSingleton() |
com.google.inject.Scope |
concurrentSingleton(long expirity,
TimeUnit unit) |
org.aopalliance.intercept.MethodInterceptor |
createDelegatingInterceptor(Class<? extends org.aopalliance.intercept.MethodInterceptor> type) |
org.aopalliance.intercept.MethodInterceptor |
createDelegatingInterceptor(com.google.inject.Key<? extends org.aopalliance.intercept.MethodInterceptor> type) |
com.google.inject.Scope |
expiringSingleton(long expirity,
TimeUnit unit) |
<A extends Annotation> |
handleAfterInjection(Class<A> annotationType,
Class<? extends AnnotatedMemberHandler<A>> providerClass) |
<A extends Annotation> |
handleFieldAfterInjection(Class<A> annotationType,
Class<? extends FieldHandler<A>> providerClass) |
<A extends Annotation> |
handleMethodAfterInjection(Class<A> annotationType,
Class<? extends MethodHandler<A>> providerClass) |
static MycilaGuice |
in(com.google.inject.Binder binder) |
MycilaGuice |
install(com.google.inject.Module module) |
static boolean |
isBindingAnnotation(Class<? extends Annotation> annotationType)
Returns true if annotations of the specified type are binding annotations.
|
com.google.inject.Scope |
renewableSingleton(long expirity,
TimeUnit unit) |
<T> T |
requestInjection(T object) |
ResetScope |
resetSingleton() |
com.google.inject.Scope |
softSingleton() |
com.google.inject.Scope |
weakSingleton() |
public MycilaGuice bindInterceptor(Class<?> interf, String methodName, Class<?>[] params, org.aopalliance.intercept.MethodInterceptor... interceptors)
public MycilaGuice bindInterceptor(com.google.inject.matcher.Matcher<? super Class<?>> classMatcher, com.google.inject.matcher.Matcher<? super Method> methodMatcher, org.aopalliance.intercept.MethodInterceptor... interceptors)
public com.google.inject.Scope expiringSingleton(long expirity,
TimeUnit unit)
public com.google.inject.Scope renewableSingleton(long expirity,
TimeUnit unit)
public com.google.inject.Scope weakSingleton()
public com.google.inject.Scope softSingleton()
public com.google.inject.Scope concurrentSingleton()
public com.google.inject.Scope concurrentSingleton(long expirity,
TimeUnit unit)
public ResetScope resetSingleton()
public <A extends Annotation> MycilaGuice bindAnnotationInjector(Class<A> annotationType, Class<? extends KeyProvider<A>> providerClass)
public <A extends Annotation> MycilaGuice handleMethodAfterInjection(Class<A> annotationType, Class<? extends MethodHandler<A>> providerClass)
public <A extends Annotation> MycilaGuice handleFieldAfterInjection(Class<A> annotationType, Class<? extends FieldHandler<A>> providerClass)
public <A extends Annotation> MycilaGuice handleAfterInjection(Class<A> annotationType, Class<? extends AnnotatedMemberHandler<A>> providerClass)
public <T> MycilaGuice bind(Class<T> type, T instance)
public MycilaGuice install(com.google.inject.Module module)
public <T> T requestInjection(T object)
public org.aopalliance.intercept.MethodInterceptor createDelegatingInterceptor(Class<? extends org.aopalliance.intercept.MethodInterceptor> type)
public org.aopalliance.intercept.MethodInterceptor createDelegatingInterceptor(com.google.inject.Key<? extends org.aopalliance.intercept.MethodInterceptor> type)
public static MycilaGuice in(com.google.inject.Binder binder)
public static boolean isBindingAnnotation(Class<? extends Annotation> annotationType)
Copyright © 2010-2012 Mycila. All Rights Reserved.