[jboss-dev-forums] [Design of POJO Server] - ProfileService Server.getMetadata() - immutable OK?
ALRubinger
do-not-reply at jboss.com
Thu Jul 30 12:04:16 EDT 2009
Probably this one's for Scott/Emanuel:
http://anonsvn.jboss.org/repos/jbossas/projects/bootstrap/trunk/spi-as/src/main/java/org/jboss/bootstrap/spi/as/server/JBossASBasedServer.java:
/**
| * Get the optional server configuration metadata
| *
| * @return A possibly empty map of configuration metadata
| */
| Map<String, Object> getMetaData();
Can I wrap this in Collection.unmodifiableMap() when returning so we don't leak out the mutable state of the server? Or is something in the ProfileService depending upon altering the contents?
S,
ALR
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247055#4247055
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247055
More information about the jboss-dev-forums
mailing list