001 package railo.runtime.net.amf; 002 003 import java.util.Map; 004 005 import railo.runtime.exp.PageException; 006 007 /** 008 * Cast a CFML object to AMF Objects and the other way 009 */ 010 public interface AMFCaster { 011 012 public void init(Map arguments); 013 014 /** 015 * cast cfml Object to AMF Object 016 * @param o 017 * @throws PageException 018 */ 019 public Object toAMFObject(Object o) throws PageException; 020 021 /** 022 * cast a amf Object to cfml Object 023 * @param amf 024 * @throws PageException 025 */ 026 public Object toCFMLObject(Object amf) throws PageException; 027 }