|
Dashboard Builder Commons 6.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dashboard.factory.Component
public class Component
This class holds all the properties regarding a Factory bean definition. Such definition is usually implemented by means of a .properties file inside the etc/factory directory..
| Field Summary | |
|---|---|
static String |
ALIAS_PROPERTY
|
static String |
CLASS_PROPERTY
|
static String |
DESC_PROPERTY
|
static String |
ENABLED_PROPERTY
|
static String |
SCOPE_GLOBAL
|
static String |
SCOPE_PANEL_SESSION
|
static String |
SCOPE_PROPERTY
|
static String |
SCOPE_REQUEST
|
static String |
SCOPE_SESSION
|
static String |
SCOPE_VOLATILE
|
static String |
SPECIAL_PROPERTY_PREFFIX
|
static int |
STATUS_INCOMPLETE
|
static int |
STATUS_INVALID
|
static int |
STATUS_VALID
|
List |
VALID_SCOPES
|
| Constructor Summary | |
|---|---|
Component(String name,
ComponentsTree tree)
|
|
| Method Summary | |
|---|---|
String |
getAlias()
|
String |
getClazz()
|
Map |
getComponentConfiguredProperties()
|
long |
getCreationOrderNumber()
|
String |
getDescription()
|
protected Field |
getField(Object obj,
String propertyName)
|
protected Method |
getGetter(Object obj,
String propertyName)
|
protected List |
getInitScopes()
|
String |
getName()
|
Object |
getObject()
|
List |
getPropertiesFilesAdded()
|
String |
getScope()
|
protected Method |
getSetter(Object obj,
Method getter,
String propertyName)
|
int |
getStatus()
|
protected Object |
getTheInstance()
|
ComponentsTree |
getTree()
|
protected Object |
getValueForProperty(List values,
Class expectedClass)
|
protected boolean |
isValidPropertyName(String propertyName)
Determine if the property name is a valid property identifier |
protected Object |
makeAndSetNewInstance()
|
void |
setCreationOrderNumber(long creationOrderNumber)
|
protected Object |
setObjectProperty(Object obj,
String propertyName,
List propertyValue,
org.apache.commons.jxpath.JXPathContext ctx)
|
void |
setProperty(String propertyName,
File propertyValue)
|
void |
setProperty(String propertyName,
String[] propertyValues)
Writes a property value to the component |
protected void |
setTheInstance(Object instance)
|
protected void |
storeProperty(String propertyName,
String propertyValue)
Store in componentProperties the property given by name and value. |
String |
toString()
|
void |
validate()
Update the status attribute to reflect the component status |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ALIAS_PROPERTY
public static final String CLASS_PROPERTY
public static final String SCOPE_PROPERTY
public static final String DESC_PROPERTY
public static final String ENABLED_PROPERTY
public static final String SPECIAL_PROPERTY_PREFFIX
public static final String SCOPE_GLOBAL
public static final String SCOPE_SESSION
public static final String SCOPE_PANEL_SESSION
public static final String SCOPE_REQUEST
public static final String SCOPE_VOLATILE
public final List VALID_SCOPES
public static final int STATUS_INCOMPLETE
public static final int STATUS_VALID
public static final int STATUS_INVALID
| Constructor Detail |
|---|
public Component(String name,
ComponentsTree tree)
| Method Detail |
|---|
public long getCreationOrderNumber()
public void setCreationOrderNumber(long creationOrderNumber)
public ComponentsTree getTree()
protected List getInitScopes()
public Map getComponentConfiguredProperties()
protected boolean isValidPropertyName(String propertyName)
propertyName - Property name to evaluate
protected void storeProperty(String propertyName,
String propertyValue)
propertyName - propertyValue -
public void setProperty(String propertyName,
String[] propertyValues)
throws Exception
propertyName - propertyValues -
Exception
public void setProperty(String propertyName,
File propertyValue)
throws Exception
Exceptionpublic String getName()
public String getClazz()
public String getScope()
public String getAlias()
public String getDescription()
public List getPropertiesFilesAdded()
public String toString()
toString in class Objectpublic void validate()
public int getStatus()
public Object getObject()
throws LookupException
LookupException
protected final Object getTheInstance()
throws LookupException
LookupExceptionprotected final void setTheInstance(Object instance)
protected Object makeAndSetNewInstance()
protected Object setObjectProperty(Object obj,
String propertyName,
List propertyValue,
org.apache.commons.jxpath.JXPathContext ctx)
throws Exception
Exception
protected Field getField(Object obj,
String propertyName)
protected Method getGetter(Object obj,
String propertyName)
protected Method getSetter(Object obj,
Method getter,
String propertyName)
protected Object getValueForProperty(List values,
Class expectedClass)
throws Exception
Exception
|
Dashboard Builder Commons 6.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||