org.jboss.arquillian.core.api.Injector Java Examples

The following examples show how to use org.jboss.arquillian.core.api.Injector. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TargetController.java    From arquillian-container-chameleon with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("rawtypes")
public TargetController(ContainerAdapter adapter, Injector injector, File resolverCacheFolder) throws Exception {
    // init
    this.classloader = resolveClasspathDependencies(adapter, resolverCacheFolder);
    final Class<?> delegateClass = classloader.loadClass(adapter.adapterClass());
    this.delegate = injector.inject((DeployableContainer) delegateClass.newInstance());
    this.adapter = adapter;
}
 
Example #2
Source File: Registry.java    From keycloak with Apache License 2.0 4 votes vote down vote up
public Registry(Injector injector) {
    this.containers = new ArrayList<>();
    this.injector = injector;
}