Package com.noleme.vault.legacy
Class VaultLegacyCompiler
- java.lang.Object
-
- com.noleme.vault.legacy.VaultLegacyCompiler
-
public class VaultLegacyCompiler extends Object
- Author:
- Pierre Lecerf ([email protected]) Created on 2020/05/25
-
-
Constructor Summary
Constructors Constructor Description VaultLegacyCompiler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<Key>
append(Set<Key> set, Key newKey)
static String
chain(Set<Key> chain, Key lastKey)
static Constructor<?>
constructor(Key key)
static Set<Field>
fields(Class<?> type)
static InjectableField[]
injectFields(Class<?> target)
static javax.inject.Provider<?>[]
paramProviders(Vault vault, Key key, Class<?>[] parameterClasses, Type[] parameterTypes, Annotation[][] annotations, Set<Key> chain)
static Object[]
params(javax.inject.Provider<?>[] paramProviders)
static boolean
providerInSubClass(Method method, Set<Method> discoveredMethods)
static void
providerMethod(Vault vault, Object module, Method m)
static Set<Method>
providers(Class<?> type)
static Annotation
qualifier(Annotation[] annotations)
-
-
-
Method Detail
-
injectFields
public static InjectableField[] injectFields(Class<?> target)
- Parameters:
target
-- Returns:
-
constructor
public static Constructor<?> constructor(Key key) throws RuntimeVaultException
- Parameters:
key
-- Returns:
- Throws:
RuntimeVaultException
-
qualifier
public static Annotation qualifier(Annotation[] annotations)
- Parameters:
annotations
-- Returns:
-
providerInSubClass
public static boolean providerInSubClass(Method method, Set<Method> discoveredMethods)
- Parameters:
method
-discoveredMethods
-- Returns:
-
providerMethod
public static void providerMethod(Vault vault, Object module, Method m)
- Parameters:
vault
-module
-m
-
-
paramProviders
public static javax.inject.Provider<?>[] paramProviders(Vault vault, Key key, Class<?>[] parameterClasses, Type[] parameterTypes, Annotation[][] annotations, Set<Key> chain) throws RuntimeVaultException
- Parameters:
vault
-key
-parameterClasses
-parameterTypes
-annotations
-chain
-- Returns:
- Throws:
RuntimeVaultException
-
chain
public static String chain(Set<Key> chain, Key lastKey)
- Parameters:
chain
-lastKey
-- Returns:
-
params
public static Object[] params(javax.inject.Provider<?>[] paramProviders)
- Parameters:
paramProviders
-- Returns:
-
-