|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lenya.ac.impl.ItemConfiguration
public class ItemConfiguration
Use this class to create configurations from AbstractItem
s or
to build AbstractItem
s from configurations.
Field Summary | |
---|---|
protected static java.lang.String |
ATTRIBUTE_CLASS
|
protected static java.lang.String |
ATTRIBUTE_ID
|
protected static java.lang.String |
ELEMENT_DESCRIPTION
|
protected static java.lang.String |
ELEMENT_NAME
|
Constructor Summary | |
---|---|
ItemConfiguration()
Ctor. |
Method Summary | |
---|---|
void |
configure(AbstractItem manageable,
org.apache.avalon.framework.configuration.Configuration configuration)
Configures a Manageable. |
static java.lang.String |
getItemClass(org.apache.avalon.framework.configuration.Configuration config)
Returns the class name of an item. |
void |
save(AbstractItem manageable,
org.apache.avalon.framework.configuration.DefaultConfiguration configuration)
Saves the ID, name and description of the Manageable to the configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String ELEMENT_NAME
protected static final java.lang.String ELEMENT_DESCRIPTION
protected static final java.lang.String ATTRIBUTE_ID
protected static final java.lang.String ATTRIBUTE_CLASS
Constructor Detail |
---|
public ItemConfiguration()
Method Detail |
---|
public void save(AbstractItem manageable, org.apache.avalon.framework.configuration.DefaultConfiguration configuration)
manageable
- A manageable.configuration
- A configuration.public void configure(AbstractItem manageable, org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
manageable
- The manageable.configuration
- The configuration.
org.apache.avalon.framework.configuration.ConfigurationException
- when something went wrong.public static java.lang.String getItemClass(org.apache.avalon.framework.configuration.Configuration config) throws org.apache.lenya.ac.AccessControlException
config
- The item configuration.
org.apache.lenya.ac.AccessControlException
- when something went wrong.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |