public interface StickyBootstrap
| Modifier and Type | Method and Description |
|---|---|
boolean |
canFind(Class<?> type) |
static StickyBootstrap |
crank() |
static StickyBootstrap |
crank(Object target,
Class<?> base) |
static StickyBootstrap |
crank(Object target,
String... packages) |
void |
extend(Object extension)
Useful to extend the scanning, could be a Guice module or a Spring Resource to scan for example
|
<T> T |
find(Class<T> type)
Find an instance of the give type, it MAY result in a new instance depending on its scoping.
|
Object |
getImplementation()
useful for framework integrations where you need access to the Spring
context or Guice Injector
|
StickyBootstrap |
inject(Object value)
Resolve the dependencies of the given object
|
void |
registerProvider(String name,
javax.inject.Provider<Object> provider,
Class<?> type) |
void |
registerSingleton(String beanName,
Object bean,
Class<?> type) |
void |
registerType(String beanName,
Class<?> type) |
StickyBootstrap |
scan(Collection<String> packageFilters) |
StickyBootstrap |
scan(String... packages)
Scan the given packages for components
|
void |
shutdown() |
void |
start() |
static StickyBootstrap crank(Object target, String... packages)
static StickyBootstrap crank(Object target, Class<?> base)
static StickyBootstrap crank()
StickyBootstrap scan(String... packages)
StickyBootstrap inject(Object value)
<T> T find(Class<T> type) throws BeanNotFoundFailure
BeanNotFoundFailureboolean canFind(Class<?> type)
Object getImplementation()
void shutdown()
StickyBootstrap scan(Collection<String> packageFilters)
void extend(Object extension)
void start()
Copyright © 2012–2016 RedEngine Ltd. All rights reserved.