Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 15848 Details for
Bug 75522
"can't find type [I" in problems view
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
aspect causing error
PersistentStorageAccess.aj (text/plain), 1.57 KB, created by
Eric Bodden
on 2004-11-14 18:38:39 EST
(
hide
)
Description:
aspect causing error
Filename:
MIME Type:
Creator:
Eric Bodden
Created:
2004-11-14 18:38:39 EST
Size:
1.57 KB
patch
obsolete
>package dw.wevoked.aspects; > >import java.util.Date; >import org.prevayler.Transaction; >import org.prevayler.TransactionWithQuery; > >/** > * @author Eric > * > * Enforces persistent storage access. > */ >public aspect PersistentStorageAccess { > > //MAKE USE OF TRANSACTION METHODS > > //those are calls to methods that change combination of business objects > pointcut callToInternalAdd(): call(public dw.wevoked.storage.prevalence.businessobjects.* dw.wevoked.storage.prevalence.businessobjects.*.add*()); > pointcut callToInternalRemove(): call(public dw.wevoked.storage.prevalence.businessobjects.* dw.wevoked.storage.prevalence.businessobjects.*.remove*()); > pointcut callToInternalSet(): call(public dw.wevoked.storage.prevalence.businessobjects.* dw.wevoked.storage.prevalence.businessobjects.*.set*()); > pointcut criticalCall(): callToInternalAdd() || callToInternalRemove() || callToInternalSet(); > > //inside this region, such calls are allowed > pointcut withinTransactionMethod(): withincode(public void Transaction+.executeOn(Object,Date)) || > withincode(public Object TransactionWithQuery+.executeAndQuery(Object,Date)); > > //we do not allow such methods to be called outside of transaction methods > declare error: criticalCall() && !withinTransactionMethod() : "Internal manipulation of prevayler business object not allowed. Create Transaction instead."; > > //DO NOT USE DEFAULT CONSTRUCTORS ON TRANSACTIONS > declare error: call((Transaction+||TransactionWithQuery+).new()) : "Default constructor for prevayler transactions is for serialization purposes only."; > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 75522
:
14962
| 15848