|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvnet.hk2.config.WriteableView
public class WriteableView
A WriteableView is a view of a ConfigBean object that allow access to the setters of the ConfigBean.
| Constructor Summary | |
|---|---|
WriteableView(ConfigBeanProxy readView)
|
|
| Method Summary | ||
|---|---|---|
void |
abort(Transaction t)
Aborts this Transaction, reverting the state |
|
|
allocateProxy(java.lang.Class<T> type)
Allocate a new ConfigBean object as part of the Transaction associated with this configuration object. |
|
boolean |
canCommit(Transaction t)
Returns true of this Transaction can be committed on this object |
|
java.util.List<java.beans.PropertyChangeEvent> |
commit(Transaction t)
Commit this Transaction. |
|
ConfigBean |
getMasterView()
|
|
ConfigModel.Property |
getProperty(java.lang.String xmlName)
|
|
java.lang.String |
getPropertyValue(java.lang.String propertyName)
|
|
|
getProxy(java.lang.Class<T> type)
|
|
|
getProxyType()
|
|
java.lang.Object |
getter(ConfigModel.Property property,
java.lang.reflect.Type t)
|
|
Transaction |
getTransaction()
|
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
|
boolean |
join(Transaction t)
Enter a new Transaction, this method should return false if this object is already enlisted in another transaction, or cannot be enlisted with the passed transaction. |
|
void |
setMasterView(ConfigView view)
|
|
void |
setter(ConfigModel.Property property,
java.lang.Object newValue,
java.lang.reflect.Type t)
|
|
static java.lang.String |
stripMarkers(java.lang.String s)
remove @ or <> eg "@foo" => "foo" or " |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WriteableView(ConfigBeanProxy readView)
| Method Detail |
|---|
public Transaction getTransaction()
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwablepublic java.lang.String getPropertyValue(java.lang.String propertyName)
public java.lang.Object getter(ConfigModel.Property property,
java.lang.reflect.Type t)
public void setter(ConfigModel.Property property,
java.lang.Object newValue,
java.lang.reflect.Type t)
public ConfigModel.Property getProperty(java.lang.String xmlName)
public boolean join(Transaction t)
join in interface Transactort - the transaction to enlist with
public boolean canCommit(Transaction t)
throws TransactionFailure
canCommit in interface Transactort - is the transaction to commit, should be the same as the
one passed during the join(Transaction t) call.
TransactionFailure - if the changes cannot be validatedpublic static java.lang.String stripMarkers(java.lang.String s)
public java.util.List<java.beans.PropertyChangeEvent> commit(Transaction t)
throws TransactionFailure
commit in interface Transactort - the transaction commiting.
TransactionFailure - if the transaction commit failedpublic void abort(Transaction t)
abort in interface Transactort - the aborting transaction
public <T extends ConfigBeanProxy> T allocateProxy(java.lang.Class<T> type)
throws TransactionFailure
type - the request configuration object type
TransactionFailure - if the allocation failedpublic ConfigBean getMasterView()
getMasterView in interface ConfigViewpublic void setMasterView(ConfigView view)
setMasterView in interface ConfigViewpublic <T extends ConfigBeanProxy> java.lang.Class<T> getProxyType()
getProxyType in interface ConfigViewpublic <T extends ConfigBeanProxy> T getProxy(java.lang.Class<T> type)
getProxy in interface ConfigView
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||