Class JAXBResourceFactory
java.lang.Object
com.peterphi.std.guice.common.serviceprops.jaxbref.JAXBResourceFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
Resolve the JAXB resource, permitting caching behind the scenes<T> T
Resolve the JAXB resource, permitting caching behind the scenes<T> T
Resolve the JAXB resource once without caching anything
-
Constructor Details
-
JAXBResourceFactory
-
-
Method Details
-
get
Resolve the JAXB resource, permitting caching behind the scenes- Type Parameters:
T
-- Parameters:
clazz
- the jaxb resource to readname
- the name of the property- Returns:
-
get
Resolve the JAXB resource, permitting caching behind the scenes- Type Parameters:
T
-- Parameters:
clazz
- the jaxb resource to readname
- the name of the propertydefaultValue
- the default value to return if the property is missing- Returns:
-
getOnce
Resolve the JAXB resource once without caching anything- Type Parameters:
T
-- Parameters:
clazz
-name
-- Returns:
-