public class RASConfig
extends java.util.Hashtable
RASConfig
contains the configuration data for a RAS
object (a logger, handler or formatter).
A RASConfig
contains the following items:
getConfig
and
setConfig
methods of the RASObject
classes. This data is passed
to the RAS object when it is created.
RASObject
, once the object has
been created.
RASManager
,
RASGroup
,
Serialized FormConstructor and Description |
---|
RASConfig()
Deprecated.
Creates a
RASConfig . |
RASConfig(java.util.Hashtable config)
Deprecated.
Creates a
RASConfig . |
Modifier and Type | Method and Description |
---|---|
int |
decrementInUseCount()
Deprecated.
Decrements by one the number of applications which are currently using
this RAS object.
|
boolean |
equals(java.lang.Object object)
Deprecated.
|
java.util.Hashtable |
getConfig()
Deprecated.
RASConfig is now a Hashtable , so the
Hashtable methods may be invoked directly on this
object. |
int |
getInUseCount()
Deprecated.
Gets the number of applications which are currently using this RAS
object.
|
RASObject |
getObject()
Deprecated.
Gets a reference to the RAS object created from this configuration.
|
int |
hashCode()
Deprecated.
|
int |
incrementInUseCount()
Deprecated.
Increments by one the number of applications which are currently using
this RAS object.
|
boolean |
isModified()
Deprecated.
Determines if the group has been modified.
|
void |
setConfig(java.util.Hashtable config)
Deprecated.
Sets the configuration data held by this object.
|
void |
setInUseCount(int count)
Deprecated.
Sets the number of applications which are currently using this RAS
object.
|
void |
setModified(boolean flag)
Deprecated.
Sets a flag that indicates that the contents of this group has been
modified.
|
void |
setObject(RASObject object)
Deprecated.
Sets a reference to the RAS object created from this configuration.
|
java.lang.String |
toString()
Deprecated.
Returns a
String representation of this object. |
protected void |
updateActiveObjects(RASConfig oldConfig)
Deprecated.
Scans an "old"
RASConfig for RAS objects which have been
instantiated and updates this object with this information. |
public RASConfig()
RASConfig
.public RASConfig(java.util.Hashtable config)
RASConfig
.config
- A Hashtable
of configuration data for a
RASObject
.public java.util.Hashtable getConfig()
RASConfig
is now a Hashtable
, so the
Hashtable
methods may be invoked directly on this
object.Hashtable
of configuration data for a
RASObject
.public void setConfig(java.util.Hashtable config)
config
- A Hashtable
of configuration data for a
RASObject
.public int getInUseCount()
public void setInUseCount(int count)
count
- The in-use count.public int incrementInUseCount()
public int decrementInUseCount()
public void setModified(boolean flag)
flag
- true
when the group has been modified and
false
otherwise.public boolean isModified()
true
when the group has been modified and
false
otherwise.public RASObject getObject()
RASObject
.public void setObject(RASObject object)
object
- The RASObject
.protected void updateActiveObjects(RASConfig oldConfig)
RASConfig
for RAS objects which have been
instantiated and updates this object with this information. This
method should be called if a RAS configuration is refreshed from a
data store, so that the active-object data is not lost. This method
does nothing if the "old" configuration object is null
.oldConfig
- The RASConfig
to be scanned for
instantiated objects.public java.lang.String toString()
String
representation of this object.toString
in class java.util.Hashtable
public boolean equals(java.lang.Object object)
equals
in interface java.util.Map
equals
in class java.util.Hashtable
public int hashCode()
hashCode
in interface java.util.Map
hashCode
in class java.util.Hashtable