Class PropertyHelper
java.lang.Object
org.glassfish.persistence.common.database.PropertyHelper
- Author:
- Mitesh Meswani This class provides helper to load reources into property object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidloadFromFile(Properties properties, String fileName) Loads properties list from the specified file into specified Properties object.static voidloadFromResource(Properties properties, String resourceName, ClassLoader classLoader) Loads properties list from the specified resource into specified Properties object.
-
Constructor Details
-
PropertyHelper
public PropertyHelper()
-
-
Method Details
-
loadFromResource
public static void loadFromResource(Properties properties, String resourceName, ClassLoader classLoader) throws IOException Loads properties list from the specified resource into specified Properties object.- Parameters:
properties- Properties object to loadresourceName- Name of resource.classLoader- The class loader that should be used to load the resource. If null,primordial class loader is used.- Throws:
IOException
-
loadFromFile
Loads properties list from the specified file into specified Properties object.- Parameters:
properties- Properties object to loadfileName- Fully qualified path name to the file.- Throws:
IOException
-