@Test public void shouldInjectResourcesIntoTransportExtensions() throws Exception { configFile = createTempFileFromResource("gateway/conf/gateway-config-test-transport.xml"); GatewayConfigDocument doc = parser.parse(configFile); GatewayContext ctx = resolver.resolve(doc); DefaultTransportContext transport = ctx.getTransportForScheme("ws"); TestAcceptor acceptor = (TestAcceptor)transport.getAcceptor(); TestTransportExtension extension = (TestTransportExtension) acceptor.extensions.iterator().next(); assertNotNull(extension.getTransportFactory()); assertNotNull(extension.getResourceAddressFactory()); assertTrue(extension.getTransportFactory() instanceof TransportFactory); assertTrue(extension.getResourceAddressFactory() instanceof ResourceAddressFactory); }
public GatewayContext resolve(GatewayConfigDocument gatewayConfigDoc) throws Exception { return resolve(gatewayConfigDoc, System.getProperties()); }
GatewayContextResolver { public GatewayContext resolve(GatewayConfigDocument gatewayConfigDoc) throws Exception { return resolve(gatewayConfigDoc, System.getProperties()); } }
GatewayContextResolver { public GatewayContext resolve(GatewayConfigDocument gatewayConfigDoc) throws Exception { return resolve(gatewayConfigDoc, System.getProperties()); } GatewayContextResolver(File configDir, File webDir, File tempDir);  GatewayContextResolver(File configDir, File webDir, File tempDir, MBeanServer mbeanServer);  GatewayContextResolver(ContextResolver<SecurityType, DefaultSecurityContext> securityResolver,
                                  File webDir, File tempDir);  GatewayContextResolver(ContextResolver<SecurityType, DefaultSecurityContext> securityResolver,
                                  File webDir, File tempDir, MBeanServer mbeanServer); }
GatewayContextResolver { public GatewayContext resolve(GatewayConfigDocument gatewayConfigDoc) throws Exception { return resolve(gatewayConfigDoc, System.getProperties()); } GatewayContextResolver(File configDir, File webDir, File tempDir);  GatewayContextResolver(File configDir, File webDir, File tempDir, MBeanServer mbeanServer);  GatewayContextResolver(ContextResolver<SecurityType, DefaultSecurityContext> securityResolver,
                                  File webDir, File tempDir);  GatewayContextResolver(ContextResolver<SecurityType, DefaultSecurityContext> securityResolver,
                                  File webDir, File tempDir, MBeanServer mbeanServer); GatewayContext resolve(GatewayConfigDocument gatewayConfigDoc); GatewayContext resolve(GatewayConfigDocument gatewayConfigDoc, Properties configuration); void addInjectable(String key, Object value); Map<String, Object> getInjectables(); ConfigurationObserver getObserver(); void setObserver(ConfigurationObserver observer); }
GatewayContextResolver { public GatewayContext resolve(GatewayConfigDocument gatewayConfigDoc) throws Exception { return resolve(gatewayConfigDoc, System.getProperties()); } GatewayContextResolver(File configDir, File webDir, File tempDir);  GatewayContextResolver(File configDir, File webDir, File tempDir, MBeanServer mbeanServer);  GatewayContextResolver(ContextResolver<SecurityType, DefaultSecurityContext> securityResolver,
                                  File webDir, File tempDir);  GatewayContextResolver(ContextResolver<SecurityType, DefaultSecurityContext> securityResolver,
                                  File webDir, File tempDir, MBeanServer mbeanServer); GatewayContext resolve(GatewayConfigDocument gatewayConfigDoc); GatewayContext resolve(GatewayConfigDocument gatewayConfigDoc, Properties configuration); void addInjectable(String key, Object value); Map<String, Object> getInjectables(); ConfigurationObserver getObserver(); void setObserver(ConfigurationObserver observer); static final String AUTHORIZATION_MODE_CHALLENGE; static final String AUTH_SCHEME_BASIC; static final String AUTH_SCHEME_NEGOTIATE; static final String AUTH_SCHEME_APPLICATION_TOKEN; static final String AUTH_SCHEME_APPLICATION_PREFIX; }