@Test public void testNoDeploymentFactories() throws Exception { DefaultDeploymentCreator creator = new DefaultDeploymentCreator(); DefaultDeploymentFactory factory = creator.getFactory("foo"); assertThat(factory).isNull(); }
DefaultDeploymentFactory getFactory(String type) { return this.factories.get(type); }
DefaultDeploymentCreator { DefaultDeploymentFactory getFactory(String type) { return this.factories.get(type); } }
DefaultDeploymentCreator { DefaultDeploymentFactory getFactory(String type) { return this.factories.get(type); } @Inject  DefaultDeploymentCreator(@Any Instance<DefaultDeploymentFactory> factories);  DefaultDeploymentCreator(DefaultDeploymentFactory... factories);  DefaultDeploymentCreator(Iterable<DefaultDeploymentFactory> factories); }
DefaultDeploymentCreator { DefaultDeploymentFactory getFactory(String type) { return this.factories.get(type); } @Inject  DefaultDeploymentCreator(@Any Instance<DefaultDeploymentFactory> factories);  DefaultDeploymentCreator(DefaultDeploymentFactory... factories);  DefaultDeploymentCreator(Iterable<DefaultDeploymentFactory> factories); Archive<?> createDefaultDeployment(String type); }
DefaultDeploymentCreator { DefaultDeploymentFactory getFactory(String type) { return this.factories.get(type); } @Inject  DefaultDeploymentCreator(@Any Instance<DefaultDeploymentFactory> factories);  DefaultDeploymentCreator(DefaultDeploymentFactory... factories);  DefaultDeploymentCreator(Iterable<DefaultDeploymentFactory> factories); Archive<?> createDefaultDeployment(String type);  }