Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Handle static imports for ScopeType
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Jun 26, 2015
1 parent 1f28a2d commit f256b9b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions etc/scripts/seam2cdi.sh
Expand Up @@ -74,12 +74,12 @@ sed -i "$@" -f - <<-EOF
# Seam scopes -> CDI/DeltaSpike scopes
/import org.jboss.seam.ScopeType;\?/d
/import org.jboss.seam.annotations.Scope;\?/d
s/@Scope(ScopeType.APPLICATION)/@javax.enterprise.context.ApplicationScoped/g
s/@Scope(ScopeType.EVENT)/@javax.enterprise.context.RequestScoped/g
s/@Scope(ScopeType.PAGE)/@javax.faces.bean.ViewScoped/g
s|@Scope(ScopeType.CONVERSATION)|@org.apache.deltaspike.core.api.scope.ViewAccessScoped /* TODO [CDI] check this: migrated from ScopeType.CONVERSATION */|g
s/@Scope(ScopeType.SESSION)/@javax.enterprise.context.SessionScoped/g
s/@Scope(ScopeType.STATELESS)/@javax.enterprise.context.Dependent/g
s/@Scope(\(ScopeType.\)\?APPLICATION)/@javax.enterprise.context.ApplicationScoped/g
s/@Scope(\(ScopeType.\)\?EVENT)/@javax.enterprise.context.RequestScoped/g
s/@Scope(\(ScopeType.\)\?PAGE)/@javax.faces.bean.ViewScoped/g
s|@Scope(\(ScopeType.\)\?CONVERSATION)|@org.apache.deltaspike.core.api.scope.ViewAccessScoped /* TODO [CDI] check this: migrated from ScopeType.CONVERSATION */|g
s/@Scope(\(ScopeType.\)\?SESSION)/@javax.enterprise.context.SessionScoped/g
s/@Scope(\(ScopeType.\)\?STATELESS)/@javax.enterprise.context.Dependent/g
# Seam's AutoCreate behaviour is the default in CDI
/import org.jboss.seam.annotations.AutoCreate;\?/d
Expand Down

0 comments on commit f256b9b

Please sign in to comment.