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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...