本文整理匯總了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;
}