[jboss-dev-forums] [Design of POJO Server] - Re: Controlling deployments via a barrier bean
bstansberry@jboss.com
do-not-reply at jboss.com
Wed Jun 4 12:09:59 EDT 2008
Perhaps @HASingleton as the term "Singleton" seems overloaded.
| @Target(ElementType.TYPE)
| @Retention(RetentionPolicy.RUNTIME)
| public @interface HASingleton
| {
| String partition() default "${jboss.partition.name:DefaultPartition}";
| }
|
A more general purpose form:
| @Target(ElementType.TYPE)
| @Retention(RetentionPolicy.RUNTIME)
| public @interface HASingleton
| {
| String partition() default "${jboss.partition.name:DefaultPartition}";
|
| Class electionPolicy() default org.jboss.ha.singleton.HASingletonElectionPolicySimple.class;
|
| Object[] constructorArgs() default new Object[]{ new Integer(0) };
|
| Class[] constructorArgTypes() default new Class[]{ Integer.class };
| }
|
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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155751#4155751
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155751
More information about the jboss-dev-forums
mailing list