-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/quarkus vaadin8 integration #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 3.0
Are you sure you want to change the base?
Conversation
Vaadin-cdi uses the same context-instance for Normal and UI-Scoped annotations. The differentiation was introduced to also provide proxies for CDI. Since this caused some issues with the current setup, we had to unify the scopes and therefore remove the normal-scopes.
* Add commons3-lang dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me - nothing negative found
contexts.add(context); | ||
} | ||
|
||
Assertions.assertEquals(7, availableScopes.size()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static import?
quarkus-extension/pom.xml
Outdated
</dependencies> | ||
</dependencyManagement> | ||
|
||
</project> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no new line at the end
# guide: ... | ||
# categories: | ||
# - "miscellaneous" | ||
# status: "preview" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no new line at the end
import org.apache.deltaspike.core.util.context.ContextualInstanceInfo; | ||
import org.apache.deltaspike.core.util.context.ContextualStorage; | ||
|
||
public abstract class AbstractVaadinContext implements InjectableContext { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add a reference to deltaspike?
@@ -53,6 +49,10 @@ public UIContextualStorageManager getUIContextualStorageManager() { | |||
return contextualStorageManager; | |||
} | |||
|
|||
protected ContextualStorage getContextualStorage(Contextual<?> contextual, boolean createIfNotExist) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Der Diff könnte aufgehoben werden durch umplatzieren
@@ -77,4 +69,12 @@ && getViewContextualStorageManager() != null | |||
protected Class<?> getBeanType() { | |||
return ViewContextualStorageManager.class; | |||
} | |||
|
|||
@Override |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Der Diff könnte aufgehoben werden durch umplatzieren
@Override | ||
public Class<? extends Annotation> getScope() { | ||
return ViewScoped.class; | ||
protected ContextualStorage getContextualStorage(Contextual<?> contextual, boolean createIfNotExist) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Der Diff könnte aufgehoben werden durch umplatzieren
No description provided.