24 | * Specifies to the observable that {@link org.atmosphere.cpr.AtmosphereResourceEventListener#onHeartbeat(org.atmosphere.cpr.AtmosphereResourceEvent)} 25 | * should be invoked when it fires event to observers. 26 | *
27 | * 28 | * @version 1.0 29 | * @author Guillaume DROUET 30 | * @since 2.2 31 | */ 32 | public class HeartbeatAtmosphereResourceEvent extends AtmosphereResourceEventImpl { 33 | 34 | /** 35 | *36 | * Builds a new event. 37 | *
38 | * 39 | * @param resource the resource 40 | */ 41 | public HeartbeatAtmosphereResourceEvent(final AtmosphereResourceImpl resource) { 42 | super(resource); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /modules/cpr/src/main/java/org/atmosphere/config/ApplicationConfiguration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2008-2025 Async-IO.org 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not 5 | * use this file except in compliance with the License. You may obtain a copy of 6 | * the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations under 14 | * the License. 15 | */ 16 | package org.atmosphere.config; 17 | 18 | /** 19 | * @author Sebastien Dionne : sebastien.dionne@gmail.com 20 | */ 21 | public class ApplicationConfiguration { 22 | 23 | private String paramName; 24 | private String paramValue; 25 | 26 | public ApplicationConfiguration(String paramName, String paramValue) { 27 | this.paramName = paramName; 28 | this.paramValue = paramValue; 29 | } 30 | 31 | public String getParamName() { 32 | return paramName; 33 | } 34 | 35 | public void setParamName(String paramName) { 36 | this.paramName = paramName; 37 | } 38 | 39 | public String getParamValue() { 40 | return paramValue; 41 | } 42 | 43 | public void setParamValue(String paramValue) { 44 | this.paramValue = paramValue; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /modules/cpr/src/main/java/org/atmosphere/inject/Injectable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2008-2025 Async-IO.org 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not 5 | * use this file except in compliance with the License. You may obtain a copy of 6 | * the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations under 14 | * the License. 15 | */ 16 | package org.atmosphere.inject; 17 | 18 | import org.atmosphere.cpr.AtmosphereConfig; 19 | 20 | import jakarta.inject.Inject; 21 | import java.lang.reflect.Type; 22 | 23 | /** 24 | * An Injectable class allow the {@link InjectableObjectFactory} to assign a value to a field annotated with the 25 | * {@link Inject} annotation. 26 | * 27 | * @param