|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.impl.config.domain.key.envapp.AbstractConfigurationKey<T>
T
- the type of the configuration key.
public abstract class AbstractConfigurationKey<T extends AbstractConfigurationKey<T>>
Abstract base implementation to be extended by subclasses that want to add additional key components to environment and application.
Field Summary | |
---|---|
protected int |
hashCodeValue The pre-calculated hash code of this instance. |
Constructor Summary | |
---|---|
protected |
AbstractConfigurationKey(EnvironmentId environmentId, ApplicationId applicationId) Default constructor. |
protected |
AbstractConfigurationKey(T key, ApplicationId appId) Copy constructor. |
Method Summary | |
---|---|
int |
compareTo(T o) |
boolean |
equals(Object object) Returns true if the given object is semantically equal to the given object, false otherwise. |
ApplicationId |
getApplicationId() Returns the identifier of the application whose configuration is requested. |
EnvironmentId |
getEnvironmentId() Returns the identifier of the environment the application is deployed in. |
boolean |
hasActiveDynamicParts() Returns true if this key instance has active dynamic parts. |
int |
hashCode() Returns the hash code of the object. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final int hashCodeValue
Constructor Detail |
---|
protected AbstractConfigurationKey(EnvironmentId environmentId, ApplicationId applicationId) throws NullPointerException
applicationId
- the identifier of the application whose configuration is requested.
environmentId
- the identifier of the environment the application is deployed in.
NullPointerException
- if
applicationId
or
environmentId
is
null
.
protected AbstractConfigurationKey(T key, ApplicationId appId) throws NullPointerException
key
- the key to copy.
appId
- the appId to set into the copy.
NullPointerException
- if
key
or
appId
is
null
.
Method Detail |
---|
public final EnvironmentId getEnvironmentId()
public final ApplicationId getApplicationId()
public boolean hasActiveDynamicParts()
ConfigurationKey
true
if this key instance has active dynamic parts. Returns
false
(otherwise) if this key instance has only static parts. The decision criteria between a static and a dynamic key is, if all keys are known at startup, or if keys have dynamic parts, like the current user or the current tenant which can change during runtime.
hasActiveDynamicParts
in interface
ConfigurationKey<T extends AbstractConfigurationKey<T>>
true
when this key uses dynamic parts (and not only static parts).
false
otherwise.
public int hashCode()
hashCode
in interface
ConfigurationKey<T extends AbstractConfigurationKey<T>>
hashCode
in class
Object
public boolean equals(Object object)
true
if the given object is semantically equal to the given object,
false
otherwise.
equals
in interface
ConfigurationKey<T extends AbstractConfigurationKey<T>>
equals
in class
Object
object
- the instance to compare to.
true
if the given object is semantically equal to the given object,
false
otherwise.
public int compareTo(T o)
compareTo
in interface
ConfigurationKey<T extends AbstractConfigurationKey<T>>
compareTo
in interface
Comparable<T extends AbstractConfigurationKey<T>>
public String toString()
toString
in interface
ConfigurationKey<T extends AbstractConfigurationKey<T>>
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |