Package org.jboss.dashboard.factory

Examples of org.jboss.dashboard.factory.FactoryWork


    }

    public static Object runWork(final HibernateWork work) throws Throwable {
        final Throwable[] error = new Throwable[] {null};
        final Object[] result = new Object[] {null};
        Factory.doWork(new FactoryWork() {
        public void doWork() {
            try {
                new HibernateTxFragment() {
                protected void txFragment(Session session) throws Throwable {
                    result[0] = work.doWork(session);
View Full Code Here


        return globalFactory;
    }

    public void setGlobalFactory(Factory globalFactory) {
        if (this.globalFactory != null) {
            Factory.doWork(new FactoryWork() {
                public void doWork() {
                    Application.this.globalFactory.destroy();
                }
            });
        }
View Full Code Here

    // Runnable interface

    public void run() {
        while (running) {
            Factory.doWork(new FactoryWork() {
            public void doWork() {
                try {
                    // Save the stack traces for the current active transactions.
                    dumpStackTraces();
View Full Code Here

TOP

Related Classes of org.jboss.dashboard.factory.FactoryWork

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.