Skip to content

Instantly share code, notes, and snippets.

@nschlimm
Created August 5, 2011 16:13
Show Gist options
  • Save nschlimm/1127885 to your computer and use it in GitHub Desktop.
Save nschlimm/1127885 to your computer and use it in GitHub Desktop.
User Credentials example CDI scopes
import javax.enterprise.context.SessionScoped;
@SessionScoped
public class UserCredentials implements Serializable {
/**
* Unique ID
*/
private static final long serialVersionUID = 8825296584100263935L;
}
import javax.inject.Singleton;
@Singleton
public class ServiceLocator {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment