Package org.apache.muse.core

Examples of org.apache.muse.core.Persistence


       
        PersistenceDefinition persistenceDef = getPersistenceDefinition();
       
        if (persistenceDef != null)
        {
            Persistence persistence = persistenceDef.newInstance();
            capability.setPersistence(persistence);
        }
       
        return capability;
    }
View Full Code Here


            throw new RuntimeException(_MESSAGES.get("NoEntryEndpoint"));
       
        //
        // set up persistence, if it's used
        //
        Persistence persistence = getPersistence();
       
        if (persistence != null)
        {
            if (!ServiceGroupPersistence.class.isAssignableFrom(persistence.getClass()))
            {
                Object[] filler = { ServiceGroupPersistence.class, persistence.getClass() };
                throw new RuntimeException(_MESSAGES.get("IncorrectPersistenceRoot", filler));
            }
           
            ServiceGroupPersistence sgP = (ServiceGroupPersistence)persistence;
            sgP.setServiceGroup(resource);
View Full Code Here

        return _persistenceLocation;
    }

    public Persistence newInstance()
    {
        Persistence persistence = (Persistence)ReflectUtils.newInstance(getPersistenceClass());
        persistence.setPersistenceLocation(getPersistenceLocation());
        return persistence;
    }
View Full Code Here

            throw new RuntimeException(_MESSAGES.get("NoSubscriptionManager"));
       
        //
        // make sure any persistence impl is of the right type
        //
        Persistence persistence = getPersistence();
       
        if (persistence != null)
        {
            if (!NotificationProducerPersistence.class.isAssignableFrom(persistence.getClass()))
            {
                Object[] filler = { NotificationProducerPersistence.class, persistence.getClass() };
                throw new RuntimeException(_MESSAGES.get("IncorrectPersistenceRoot", filler));
            }
           
            NotificationProducerPersistence npPersistence = (NotificationProducerPersistence)persistence;
            npPersistence.setNotificationProducer(this);
View Full Code Here

        return _persistenceLocation;
    }

    public Persistence newInstance()
    {
        Persistence persistence = (Persistence)ReflectUtils.newInstance(getPersistenceClass());
        persistence.setPersistenceLocation(getPersistenceLocation());
        return persistence;
    }
View Full Code Here

       
        PersistenceDefinition persistenceDef = getPersistenceDefinition();
       
        if (persistenceDef != null)
        {
            Persistence persistence = persistenceDef.newInstance();
            capability.setPersistence(persistence);
        }
       
        return capability;
    }
View Full Code Here

            throw new RuntimeException(_MESSAGES.get("NoSubscriptionManager"));
       
        //
        // make sure any persistence impl is of the right type
        //
        Persistence persistence = getPersistence();
       
        if (persistence != null)
        {
            if (!NotificationProducerPersistence.class.isAssignableFrom(persistence.getClass()))
            {
                Object[] filler = { NotificationProducerPersistence.class, persistence.getClass() };
                throw new RuntimeException(_MESSAGES.get("IncorrectPersistenceRoot", filler));
            }
           
            NotificationProducerPersistence npPersistence = (NotificationProducerPersistence)persistence;
            npPersistence.setNotificationProducer(this);
View Full Code Here

            throw new RuntimeException(_MESSAGES.get("NoEntryEndpoint"));
       
        //
        // set up persistence, if it's used
        //
        Persistence persistence = getPersistence();
       
        if (persistence != null)
        {
            if (!ServiceGroupPersistence.class.isAssignableFrom(persistence.getClass()))
            {
                Object[] filler = { ServiceGroupPersistence.class, persistence.getClass() };
                throw new RuntimeException(_MESSAGES.get("IncorrectPersistenceRoot", filler));
            }
           
            ServiceGroupPersistence sgP = (ServiceGroupPersistence)persistence;
            sgP.setServiceGroup(resource);
View Full Code Here

            throw new RuntimeException(_MESSAGES.get("NoSubscriptionManager"));
       
        //
        // make sure any persistence impl is of the right type
        //
        Persistence persistence = getPersistence();
       
        if (persistence != null)
        {
            if (!NotificationProducerPersistence.class.isAssignableFrom(persistence.getClass()))
            {
                Object[] filler = { NotificationProducerPersistence.class, persistence.getClass() };
                throw new RuntimeException(_MESSAGES.get("IncorrectPersistenceRoot", filler));
            }
           
            NotificationProducerPersistence npPersistence = (NotificationProducerPersistence)persistence;
            npPersistence.setNotificationProducer(this);
View Full Code Here

            throw new RuntimeException(_MESSAGES.get("NoEntryEndpoint"));
       
        //
        // set up persistence, if it's used
        //
        Persistence persistence = getPersistence();
       
        if (persistence != null)
        {
            if (!ServiceGroupPersistence.class.isAssignableFrom(persistence.getClass()))
            {
                Object[] filler = { ServiceGroupPersistence.class, persistence.getClass() };
                throw new RuntimeException(_MESSAGES.get("IncorrectPersistenceRoot", filler));
            }
           
            ServiceGroupPersistence sgP = (ServiceGroupPersistence)persistence;
            sgP.setServiceGroup(resource);
View Full Code Here

TOP

Related Classes of org.apache.muse.core.Persistence

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.