/** * Creates a transaction to append the contents of one or more files or * resources to an existing configuration. * * @param containers The comma-separated list of files or resources to load * the container configurations from. * @param host The hostname where Shindig is running. * @param port The port number where Shindig is receiving requests. * @param contextRoot contextRoot where Shindig module is deployed * @param containerConfig The container configuration to add the contents of * the file to. * @return A transaction to add the new containers to the configuration. * @throws ContainerConfigException If there was a problem reading the files. */ public static Transaction getTransactionFromFile( String containers, String host, String port, String contextRoot,ContainerConfig containerConfig) throws ContainerConfigException { return addToTransactionFromFile(containers, host, port, contextRoot,containerConfig.newTransaction()); }
/** * Creates a transaction to append the contents of one or more files or * resources to an existing configuration. * * @param containers The comma-separated list of files or resources to load * the container configurations from. * @param host The hostname where Shindig is running. * @param port The port number where Shindig is receiving requests. * @param contextRoot contextRoot where Shindig module is deployed * @param containerConfig The container configuration to add the contents of * the file to. * @return A transaction to add the new containers to the configuration. * @throws ContainerConfigException If there was a problem reading the files. */ public static Transaction getTransactionFromFile( String containers, String host, String port, String contextRoot,ContainerConfig containerConfig) throws ContainerConfigException { return addToTransactionFromFile(containers, host, port, contextRoot,containerConfig.newTransaction()); }
/** * Creates a transaction to append the contents of one or more files or * resources to an existing configuration. * * @param containers The comma-separated list of files or resources to load * the container configurations from. * @param host The hostname where Shindig is running. * @param port The port number where Shindig is receiving requests. * @param contextRoot contextRoot where Shindig module is deployed * @param containerConfig The container configuration to add the contents of * the file to. * @return A transaction to add the new containers to the configuration. * @throws ContainerConfigException If there was a problem reading the files. */ public static Transaction getTransactionFromFile( String containers, String host, String port, String contextRoot,ContainerConfig containerConfig) throws ContainerConfigException { return addToTransactionFromFile(containers, host, port, contextRoot,containerConfig.newTransaction()); }