This content has been marked as final.
Show 3 replies
-
1. Re: How to create singletons?
alrubinger Nov 16, 2007 6:25 PM (in response to aidndev)@Service is a JBoss-specific extension to EJB that will create a Singleton MBean with lifecycle callbacks defined in an @Management interface.
http://trailblazer.demo.jboss.com/EJB3Trail/serviceobjects/jmx/index.html
S,
ALR -
2. Re: How to create singletons?
yilmaz_ Nov 17, 2007 1:07 PM (in response to aidndev)final guarantees the singleton but you cant change anything after an instance created.
-
3. Re: How to create singletons?
alrubinger Nov 17, 2007 5:30 PM (in response to aidndev)"yilmaz_" wrote:
final guarantees the singleton but you cant change anything after an instance created.
Declaring a class as "final" means that it cannot be subclassed (be the parent to another class). This does not place restrictions on how many instances of the class there may be.
S,
ALR