public class WriteableView extends java.lang.Object implements java.lang.reflect.InvocationHandler, Transactor, ConfigView
| Constructor and Description |
|---|
WriteableView(ConfigBeanProxy readView) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(Transaction t)
Aborts this Transaction, reverting the state
|
<T extends ConfigBeanProxy> |
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) |
<T extends ConfigBeanProxy> |
getProxy(java.lang.Class<T> type) |
<T extends ConfigBeanProxy> |
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 "
|
public WriteableView(ConfigBeanProxy readView)
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 withpublic 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 transactionpublic <T extends ConfigBeanProxy> T allocateProxy(java.lang.Class<T> type) throws TransactionFailure
type - the request configuration object typeTransactionFailure - 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 ConfigViewCopyright © 2013 Oracle Corporation. All Rights Reserved.