On 1/10/11 6:12 PM, Mitch McCuiston wrote:
> I've been thinking about implementing an annotation based mapping of
> Java objects to PVs. I thought I would ask the community if something
> like this already exists before I take it on. If it doesn't exist,
> would anyone find value in this. The idea is loosely based on how
> Hibernate maps Java objects to a relational database, although the
> read/write semantics are a little different. Here is an example.
Hi, Mitch.
I don't really see why one would use annotations for this. I'd
certainly be in favor of an object implementation in Java above JCA/CAJ
(or perhaps added to it) that would provide a simple and easy-to-use API
for interacting w/ EPICS PVs. At a minimum, it would provide an EpicsPv
object and make it easy to get and set values, easy to register interest
in a value change, do blocking puts, and more. I've written such an
implementation, but there are a lot of changes and improvements it needs
before I'd make it publicly available.
So I'd say, yes, there's a need for a simple and easy-to-use API on top
of JCA/CAJ -- something perhaps along the lines of Matt Newville's Epics
Channel Access for Python
<http://cars9.uchicago.edu/software/python/pyepics3/> which provides a
PV class. But I don't see any reason to use annotations. Why do you
want to use annotations rather than just regular objects?
Lewis
--
J. Lewis Muir
Software Engineer
IMCA-CAT
- Replies:
- Re: PV Mapping Using Java Annotations Mitch McCuiston
- References:
- PV Mapping Using Java Annotations Mitch McCuiston
- Navigate by Date:
- Prev:
RE: MOXA terminal server emma.shepherd
- Next:
RE: PV Mapping Using Java Annotations Carcassi, Gabriele
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
PV Mapping Using Java Annotations Mitch McCuiston
- Next:
Re: PV Mapping Using Java Annotations Mitch McCuiston
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|