public interface PropertyResolver
A property resolver is configured for the Pinject extension
by placing a provider configuration file in the resource directory
META-INF/services
of a directory or JAR file on the classpath
of the extension. The name of the configuration file is:
org.soulwing.cdi.properties.spi.PropertyResolver
The file may contain one or more fully-qualified class names of classes that implement this interface.
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Notifies this property resolver that it is no longer needed and that
it should consequently release any resources that it is holding.
|
int |
getPriority()
Gets the priority of this resolver relative to other resolvers.
|
void |
init()
Initializes this property resolver.
|
String |
resolve(String name)
Resolves a property name to a value.
|
void init() throws Exception
Exception
- to indicate that initialization failedvoid destroy() throws Exception
Exception
- to indicate that the resolver was not successful
in cleaning up the resources it holdsint getPriority()
Given resolvers A and B, resolver A will be consulted
before resolver B iff A.getPriority() > B.getPriority()
.
Copyright © 2014–2015. All rights reserved.