public final class PropertyModule extends java.lang.Object implements com.google.inject.Module, java.io.Serializable, java.lang.Comparable<PropertyModule>
PropertyModule
is a decorator for a Module
that enables
property methods.Modifier and Type | Field and Description |
---|---|
protected static int |
c |
int |
id |
protected com.google.inject.Module |
module |
protected java.util.List<Property> |
properties |
Constructor and Description |
---|
PropertyModule(com.google.inject.Module module)
Constructs a
PropertyModule that decorates a Module . |
Modifier and Type | Method and Description |
---|---|
PropertyModule |
clone() |
int |
compareTo(PropertyModule other) |
void |
configure(com.google.inject.Binder binder) |
boolean |
equals(java.lang.Object obj) |
org.w3c.dom.Node |
getConfiguration(org.w3c.dom.Document document)
Returns the configuration of the
PropertyModule as XML
Node . |
com.google.inject.Module |
getModule()
Returns the decorated
Module . |
java.util.List<Property> |
getProperties()
Returns the properties.
|
Property |
getProperty(java.lang.String name)
Returns the
Property with the specified name . |
int |
hashCode() |
void |
setConfiguration(org.w3c.dom.Node node)
Configures a
PropertyModule with an XML Node . |
static java.lang.Object |
toEnumElement(java.lang.String name,
java.lang.Class<? extends java.lang.Enum> type)
Converts a String to an element of a given enumeration.
|
java.lang.String |
toString() |
protected final com.google.inject.Module module
protected final java.util.List<Property> properties
protected static int c
public final int id
public PropertyModule(com.google.inject.Module module)
PropertyModule
that decorates a Module
.module
- the decorated modulepublic static java.lang.Object toEnumElement(java.lang.String name, java.lang.Class<? extends java.lang.Enum> type)
name
- the name of the elementtype
- the enumeration typepublic void configure(com.google.inject.Binder binder)
configure
in interface com.google.inject.Module
public com.google.inject.Module getModule()
Module
.public Property getProperty(java.lang.String name)
Property
with the specified name
.name
- the name of the propertyname
public java.util.List<Property> getProperties()
public java.lang.String toString()
toString
in class java.lang.Object
public void setConfiguration(org.w3c.dom.Node node)
PropertyModule
with an XML Node
.node
- the configuration as XML nodegetConfiguration(org.w3c.dom.Document)
public org.w3c.dom.Node getConfiguration(org.w3c.dom.Document document)
PropertyModule
as XML
Node
.document
- the XML documentsetConfiguration(org.w3c.dom.Node)
public PropertyModule clone()
clone
in class java.lang.Object
public int compareTo(PropertyModule other)
compareTo
in interface java.lang.Comparable<PropertyModule>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object