本文整理汇总了Java中lucee.runtime.gateway.Gateway类的典型用法代码示例。如果您正苦于以下问题:Java Gateway类的具体用法?Java Gateway怎么用?Java Gateway使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Gateway类属于lucee.runtime.gateway包,在下文中一共展示了Gateway类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: toGatewayPro
import lucee.runtime.gateway.Gateway; //导入依赖的package包/类
public static GatewayPro toGatewayPro(Object obj) throws ApplicationException{
if(obj instanceof GatewayPro)
return (GatewayPro) obj;
if(obj instanceof Gateway)
return new GatewayProxy((Gateway)obj);
throw new ApplicationException("the class ["+obj.getClass().getName()+"] does not implement the interface ["+Gateway.class.getName()+"], make sure you have not multiple implementation of that interface in your classpath");
}
示例2: GatewayProxy
import lucee.runtime.gateway.Gateway; //导入依赖的package包/类
public GatewayProxy(Gateway gateway){
this.gateway=gateway;
}
示例3: getGateway
import lucee.runtime.gateway.Gateway; //导入依赖的package包/类
public Gateway getGateway() {
return gateway;
}
示例4: toGateway
import lucee.runtime.gateway.Gateway; //导入依赖的package包/类
public static Gateway toGateway(GatewayPro gateway){
return ((GatewayProxy)gateway).getGateway();
}
示例5: invokeListener
import lucee.runtime.gateway.Gateway; //导入依赖的package包/类
@Override
public boolean invokeListener(Gateway gateway, String method, Map data) {
return engine.invokeListener(gateway.getId(), method, data);
}
示例6: log
import lucee.runtime.gateway.Gateway; //导入依赖的package包/类
@Override
public void log(Gateway gateway, int level, String message) {
engine.log(gateway.getId(), level, message);
}
示例7: toGateway
import lucee.runtime.gateway.Gateway; //导入依赖的package包/类
public static Gateway toGateway(Object obj) throws ApplicationException{
if(obj instanceof Gateway)
return (Gateway) obj;
throw new ApplicationException("the class ["+obj.getClass().getName()+"] does not implement the interface ["+Gateway.class.getName()+"], make sure you have not multiple implementation of that interface in your classpath");
}
示例8: LuceeLogger
import lucee.runtime.gateway.Gateway; //导入依赖的package包/类
public LuceeLogger(final Gateway gateway, final GatewayEngine engine)
{
this.gateway = gateway;
this.engine = engine;
}