Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.

1 /*2 * Licensed to the Apache Software Foundation (ASF) under one or more3 * contributor license agreements. See the NOTICE file distributed with4 * this work for additional information regarding copyright ownership.5 * The ASF licenses this file to You under the Apache License, Version 2.06 * (the "License"); you may not use this file except in compliance with7 * the License. You may obtain a copy of the License at8 *9 * http://www.apache.org/licenses/LICENSE-2.010 *11 * Unless required by applicable law or agreed to in writing, software12 * distributed under the License is distributed on an "AS IS" BASIS,13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.14 * See the License for the specific language governing permissions and15 * limitations under the License.16 *17 */18 package org.apache.tools.ant.types;19 20 /**21 * this interface should be implemented by classes (Scanners) needing22 * to deliver information about resources.23 *24 * @since Ant 1.5.225 */26 publicinterface ResourceFactory {27 28 /**29 * Query a resource (file, zipentry, ...) by name30 *31 * @param name relative path of the resource about which32 * information is sought. Expects &quot;/&quot; to be used as the33 * directory separator.34 * @return instance of Resource; the exists attribute of Resource35 * will tell whether the sought resource exists36 */37 Resource getResource(String name);38 }39