@Override public AutoWireObject addHttpApplicationObject(Class<?> objectClass, String bindName) { // Determine if already registered the type AutoWireObject object = this.httpApplicationObjects.get(objectClass); if (object != null) { return object; // return the already registered object } // Not registered, so register object = this.addManagedObject(HttpApplicationObjectManagedObjectSource.class.getName(), processScopeWirer, new AutoWire(objectClass)); object.addProperty(HttpApplicationObjectManagedObjectSource.PROPERTY_CLASS_NAME, objectClass.getName()); if ((bindName != null) && (bindName.trim().length() > 0)) { object.addProperty(HttpApplicationObjectManagedObjectSource.PROPERTY_BIND_NAME, bindName); } this.httpApplicationObjects.put(objectClass, object); // Return the object return object; }
@Override public AutoWireObject addHttpSessionObject(Class<?> objectClass, String bindName) { // Determine if already registered the type AutoWireObject object = this.httpSessionObjects.get(objectClass); if (object != null) { return object; // return the already registered object } // Not registered, so register object = this.addManagedObject(HttpSessionObjectManagedObjectSource.class.getName(), processScopeWirer, new AutoWire(objectClass)); object.addProperty(HttpSessionObjectManagedObjectSource.PROPERTY_CLASS_NAME, objectClass.getName()); if ((bindName != null) && (bindName.trim().length() > 0)) { object.addProperty(HttpSessionObjectManagedObjectSource.PROPERTY_BIND_NAME, bindName); } this.httpSessionObjects.put(objectClass, object); // Return the object return object; }
/** * Convenience method to auto-wire in a * {@link HttpServerSocketManagedObjectSource} into an * {@link AutoWireApplication}. * * @param source * {@link AutoWireApplication}. * @param port * Port to listen for HTTP requests. * @param sectionName * Name of the {@link SectionNode}. * @param sectionInputName * Name of the {@link SectionInput}. * @return {@link AutoWireObject}. */ public static AutoWireObject autoWire(AutoWireApplication source, int port, String sectionName, String sectionInputName) { // Create the wirer ManagedObjectSourceWirer wirer = createManagedObjectSourceWirer( sectionName, sectionInputName); // Add this managed object source AutoWireObject object = source.addManagedObject( HttpServerSocketManagedObjectSource.class.getName(), wirer, new AutoWire(ServerHttpConnection.class)); object.addProperty(PROPERTY_PORT, String.valueOf(port)); // Return the object return object; }
new AutoWire(objectClass)); object.addProperty(HttpRequestObjectManagedObjectSource.PROPERTY_CLASS_NAME, objectClass.getName()); if ((bindName != null) && (bindName.trim().length() > 0)) {
new AutoWire(ServerHttpConnection.class)); object.addProperty(PROPERTY_PORT, String.valueOf(port)); if (sslEngineSourceClass != null) {
if (!application.isObjectAvailable(new AutoWire(CometService.class))) { OnePersonTeamSource.class.getName()); }, new AutoWire(CometService.class)).setTimeout(600 * 1000); if (!application.isObjectAvailable(new AutoWire( CometRequestServicer.class))) { CometRequestServicerManagedObjectSource.class .getName(), processScopeWirer, new AutoWire(CometRequestServicer.class)); if (!application.isObjectAvailable(new AutoWire(CometPublisher.class))) { processScopeWirer, new AutoWire(CometPublisher.class)); .isAnnotationPresent(CometPublisherInterface.class)) { if (!application.isObjectAvailable(new AutoWire( parameterType))) { application CometProxyPublisherManagedObjectSource.class .getName(), processScopeWirer, new AutoWire(parameterType)) .addProperty( CometProxyPublisherManagedObjectSource.PROPERTY_PROXY_INTERFACE,
}, new AutoWire(ServletBridge.class)); bridge.addProperty( ServletBridgeManagedObjectSource.PROPERTY_INSTANCE_IDENTIFIER,
processScopeWirer, new AutoWire(ServerHttpConnection.class)); processScopeWirer, new AutoWire(HttpSession.class)); processScopeWirer, new AutoWire(HttpApplicationState.class)); source.addManagedObject( ServletHttpRequestStateManagedObjectSource.class.getName(), processScopeWirer, new AutoWire(HttpRequestState.class)); processScopeWirer, new AutoWire(dependencyType)); dependency.addProperty( ServletDependencyManagedObjectSource.PROPERTY_TYPE_NAME, autoWiring[i] = new AutoWire(dependencyTypes[i]);
AutoWire locationAutoWire = new AutoWire(HttpApplicationLocation.class); if (!(this.isObjectAvailable(locationAutoWire))) { AutoWire httpAuthentication = new AutoWire(HttpAuthentication.class); if (!(this.isObjectAvailable(httpAuthentication))) { this.addManagedObject(AnonymousHttpAuthenticationManagedObjectSource.class.getName(), processScopeWirer, "ManagedObjectLogout"); }, new AutoWire(HttpAuthentication.class)); httpAuthentication.setTimeout(securityTimeout); httpAuthentication.addProperty(HttpAuthenticationManagedObjectSource.PROPERTY_HTTP_SECURITY_SOURCE_KEY, AutoWire httpSecurityAutoWire = new AutoWire(securityClass); if (!(this.isObjectAvailable(httpSecurityAutoWire))) {