[jboss-dev-forums] [Design of POJO Server] - Metadata view with system properties resolved

bstansberry@jboss.com do-not-reply at jboss.com
Wed Jun 4 13:22:06 EDT 2008


>From another thread:

"adrian at jboss.org" wrote : 
  | "bstansberry at jboss.com" wrote : 
  |   | OT: Is there a general automagic facility/utility yet for doing String property replacement when populating metadata? For org.jboss.ejb3.annotation.clustered there's still manual code that does the property replacement.
  | 
  | You'll have to explain what you mean on a different thread.
  | 
  | If I understand correctly ...
  | I don't think its possible in general since in most cases
  | MetaData.getAnnotation() will just be returning Class.getAnnotation()
  | which is immutable, its a jdk object and
  | we don't "intercept" the fine grained Clustered.partition() invocation. 
  | 

My question was quite confused. :(  Not about populating metadata at all.

The issue is more one of having a mechanism that provides a view on metadata where system property references are resolved. Basically an aspect that does the system property resolution on read operations on a metadata object.

AIUI, right now JBossXB can resolve system properties when populating a metadata object.  But if you do that you lose the original underlying value. And if the metadata object is backed by an annotation, JBossXB doesn't come into play.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155768#4155768

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155768



More information about the jboss-dev-forums mailing list