[jboss-cvs] jboss-seam/src/main/org/jboss/seam/core ...
Gavin King
gavin.king at jboss.com
Thu Dec 14 05:27:00 EST 2006
User: gavin
Date: 06/12/14 05:27:00
Added: src/main/org/jboss/seam/core MethodContext.java
Log:
introduce METHOD context, and solve JBSEAM-564
Revision Changes Path
1.1 date: 2006/12/14 10:27:00; author: gavin; state: Exp;jboss-seam/src/main/org/jboss/seam/core/MethodContext.java
Index: MethodContext.java
===================================================================
//$Id: MethodContext.java,v 1.1 2006/12/14 10:27:00 gavin Exp $
package org.jboss.seam.core;
import static org.jboss.seam.InterceptionType.NEVER;
import static org.jboss.seam.annotations.Install.BUILT_IN;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Install;
import org.jboss.seam.annotations.Intercept;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.Unwrap;
import org.jboss.seam.contexts.Context;
import org.jboss.seam.contexts.Contexts;
/**
* Support for injecting the page context
*
* @author Gavin King
*/
@Scope(ScopeType.APPLICATION)
@Intercept(NEVER)
@Name("org.jboss.seam.core.methodContext")
@Install(precedence=BUILT_IN)
public class MethodContext
{
@Unwrap
public Context getContext()
{
return Contexts.isMethodContextActive() ?
Contexts.getMethodContext() : null;
}
}
More information about the jboss-cvs-commits
mailing list