public class Component extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
Component(String name,
ComponentsTree tree) |
Modifier and Type | Method and Description |
---|---|
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
|
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
public Component(String name, ComponentsTree tree)
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 evaluateprotected 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
Exception
public String getName()
public String getClazz()
public String getScope()
public String getAlias()
public String getDescription()
public List getPropertiesFilesAdded()
public void validate()
public int getStatus()
public Object getObject() throws LookupException
LookupException
protected final Object getTheInstance() throws LookupException
LookupException
protected 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
Copyright © 2012-2015 JBoss by Red Hat. All Rights Reserved.