Package org.dspace.core

Examples of org.dspace.core.Context.abort()


        {
            System.err.println(usage);

            if (context != null)
            {
                context.abort();
            }

            System.exit(1);
        }
        catch (Exception e)
View Full Code Here


            log.fatal(LogManager.getHeader(context, "error_loading_registries",
                    ""), e);

            if (context != null)
            {
                context.abort();
            }

            System.err.println("Error: \n - " + e.getMessage());
            System.exit(1);
        }
View Full Code Here

        }
        finally
        {
            if (c != null)
            {
                c.abort();
            }
        }
    }

    /**
 
View Full Code Here

        }
        finally
        {
            if (c != null)
            {
                c.abort();
            }
        }
        System.exit(status);
    }
View Full Code Here

       
        xmlSerializer.endElement("dspace-dc-types");
        xmlSerializer.endDocument();
       
        // abort the context, as we shouldn't have changed it!!
        context.abort();
    }
   
    /**
     * Serialize the schema registry. If the parameter 'schema' is null or empty, save all schemas
     * @param context
View Full Code Here

                System.exit(0);
            }
            catch (Exception e)
            {
                // abort all operations
                context.abort();
                e.printStackTrace();
                System.out.println(e);
                System.exit(1);
            }
        }
View Full Code Here

        }

        // Abort the context if it's still valid
        if ((context != null) && context.isValid())
        {
            context.abort();
        }
    }

    public void destroy()
    {
View Full Code Here

        }

        // Abort the context if it's still valid
        if ((context != null) && context.isValid())
        {
            context.abort();
        }
    }

    public void destroy()
    {
View Full Code Here

        }

        // Abort the context if it's still valid
           if (context != null && context.isValid())
           {
               context.abort();
           }
        }
       
       
        public void destroy()
View Full Code Here

            }
        } catch (Exception e) {

            throw new SearchServiceException(e.getMessage(), e);
        } finally {
            context.abort();
        }



View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.