public class ActorFactory
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static Actor |
getActor(javax.servlet.http.HttpServletRequest req)
从request中获取Actor
|
static Actor |
getActor(javax.servlet.http.HttpServletRequest req,
Actor defaultActor)
从request中获取Actor
|
static Actor |
getActor(java.lang.String type)
获取指定类型的Actor
|
static Actor |
getActor(java.lang.String type,
boolean isMobile,
boolean isNoPage) |
static java.lang.String |
getType(Actor actor) |
static void |
registerActor(java.lang.String type,
Actor actor)
注册当前type的actor,插件中的actor不要调用这个方法,Factory会自动注册
|
public static void registerActor(java.lang.String type, Actor actor)
type
- 预览的类型actor
- 预览的Actorpublic static Actor getActor(java.lang.String type)
type
- 指定的类型public static java.lang.String getType(Actor actor)
public static Actor getActor(java.lang.String type, boolean isMobile, boolean isNoPage)
public static Actor getActor(javax.servlet.http.HttpServletRequest req)
req
- http请求