|
||||||||||
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(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)
|
|
|
getProxy(Class<T> type)
|
|
|
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 " |
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 Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public String getPropertyValue(String propertyName)
public 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 Transactor
t
- the transaction to enlist with
public boolean canCommit(Transaction t) throws TransactionFailure
canCommit
in interface Transactor
t
- 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 Transactor
t
- the transaction commiting.
TransactionFailure
- if the transaction commit failedpublic void abort(Transaction t)
abort
in interface Transactor
t
- the aborting transactionpublic <T extends ConfigBeanProxy> T allocateProxy(Class<T> type) throws TransactionFailure
type
- the request configuration object type
TransactionFailure
- if the allocation failedpublic ConfigBean getMasterView()
getMasterView
in interface ConfigView
public void setMasterView(ConfigView view)
setMasterView
in interface ConfigView
public <T extends ConfigBeanProxy> Class<T> getProxyType()
getProxyType
in interface ConfigView
public <T extends ConfigBeanProxy> T getProxy(Class<T> type)
getProxy
in interface ConfigView
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |