public class WriteableView extends Object implements 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(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
|
List<PropertyChangeEvent> |
commit(Transaction t)
Commit this Transaction.
|
ConfigBean |
getMasterView() |
ConfigModel.Property |
getProperty(String xmlName) |
String |
getPropertyValue(String propertyName) |
<T extends ConfigBeanProxy> |
getProxy(Class<T> type) |
<T extends ConfigBeanProxy> |
getProxyType() |
Object |
getter(ConfigModel.Property property,
Type t) |
Transaction |
getTransaction() |
Object |
invoke(Object proxy,
Method method,
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,
Object newValue,
Type t) |
static String |
stripMarkers(String s)
remove @ or <> eg "@foo" => "foo" or "
|
public WriteableView(ConfigBeanProxy readView)
public Transaction getTransaction()
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowablepublic Object getter(ConfigModel.Property property, Type t)
public void setter(ConfigModel.Property property, Object newValue, Type t)
public ConfigModel.Property getProperty(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 String stripMarkers(String s)
public List<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(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> Class<T> getProxyType()
getProxyType in interface ConfigViewpublic <T extends ConfigBeanProxy> T getProxy(Class<T> type)
getProxy in interface ConfigViewCopyright © 2009-2016 Oracle Corporation. All Rights Reserved.