Package org.milyn.profile

Examples of org.milyn.profile.ProfileStore


        // If this transformation instance requires profiling, make sure the profile is registered on the
        // Smooks instance.
        if(messageProfile != null) {
            // Register this message flow if it isn't already registered...
            try {
                ProfileStore profileStore = smooks.getApplicationContext().getProfileStore();
                profileStore.getProfileSet(messageProfile);
            } catch(UnknownProfileMemberException e) {
                String[] profiles = getMessageProfiles(messageFromType, messageFrom, messageToType, messageTo);

                synchronized (SmooksTransformer.class) {
                    // Register the message flow within the Smooks context....
View Full Code Here


     * @param smooks     The {@link org.milyn.Smooks} instance on which to perform the configuration operation.
     */
    public static void registerProfileSet(ProfileSet profileSet, Smooks smooks) {
        AssertArgument.isNotNull(profileSet, "profileSet");

        ProfileStore profileStore = smooks.getApplicationContext().getProfileStore();
        try {
            profileStore.getProfileSet(profileSet.getBaseProfile());
            logger.debug("ProfileSet [" + profileSet.getBaseProfile() + "] already registered.  Not registering new profile set.");
        } catch (UnknownProfileMemberException e) {
            // It's an unregistered profileset...
            profileStore.addProfileSet(profileSet);
        }
    }
View Full Code Here

            return;
        }

        // TODO Sort out the other app context impls such that we can get the profile store from them too
        if(applicationContext instanceof ApplicationContext) {
            ProfileStore profileStore = applicationContext.getProfileStore();

            for(ProfileSet profileSet : profileSets) {
                profileStore.addProfileSet(profileSet);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.milyn.profile.ProfileStore

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.