diff options
author | Leif Åstrand <leif@vaadin.com> | 2013-04-17 11:20:13 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2013-04-18 10:36:45 +0300 |
commit | 4f7377be467fc099defc1d3dd0cb1eb656152d6f (patch) | |
tree | 998d0274de67b9d9aaac824bd519749727a351f0 /server/src/com/vaadin/annotations | |
parent | 8fcad2fe496d04b4f4fa6e8eebee673226fe70d4 (diff) | |
download | vaadin-framework-4f7377be467fc099defc1d3dd0cb1eb656152d6f.tar.gz vaadin-framework-4f7377be467fc099defc1d3dd0cb1eb656152d6f.zip |
Move push mode to UI and add @Push annotation (#11506)
Change-Id: Idc0e5e00a8f3ddd3f56d87484089c290d52715c2
Diffstat (limited to 'server/src/com/vaadin/annotations')
-rw-r--r-- | server/src/com/vaadin/annotations/Push.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/server/src/com/vaadin/annotations/Push.java b/server/src/com/vaadin/annotations/Push.java new file mode 100644 index 0000000000..e97a1a34dd --- /dev/null +++ b/server/src/com/vaadin/annotations/Push.java @@ -0,0 +1,43 @@ +/* + * Copyright 2000-2013 Vaadin Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ + +package com.vaadin.annotations; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +import com.vaadin.shared.communication.PushMode; +import com.vaadin.ui.UI; + +/** + * Defines a specific {@link PushMode} for a {@link UI}. + * + * @author Vaadin Ltd. + * @since 7.1 + */ +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.TYPE) +public @interface Push { + /** + * Returns the {@link PushMode} to use for the annotated UI. + * + * @return the push mode to use + */ + public PushMode value(); + +} |