Package play.classloading

Examples of play.classloading.ApplicationClassloaderState


    protected static Object _javaWithCachingLock = new Object();

    protected static JavaWithCaching getJavaWithCaching() {
        synchronized( _javaWithCachingLock ) {
            // has the state of the ApplicationClassloader changed?
            ApplicationClassloaderState currentApplicationClasloaderState = Play.classloader.currentState;
            if( !currentApplicationClasloaderState.equals( _lastKnownApplicationClassloaderState )) {
                // it has changed.
                // we must drop our current _javaWithCaching and create a new one...
                // and start the caching over again.
                _lastKnownApplicationClassloaderState = currentApplicationClasloaderState;
                _javaWithCaching = new JavaWithCaching();
View Full Code Here


    protected static Object _javaWithCachingLock = new Object();

    protected static JavaWithCaching getJavaWithCaching() {
        synchronized( _javaWithCachingLock ) {
            // has the state of the ApplicationClassloader changed?
            ApplicationClassloaderState currentApplicationClasloaderState = Play.classloader.currentState;
            if( !currentApplicationClasloaderState.equals( _lastKnownApplicationClassloaderState )) {
                // it has changed.
                // we must drop our current _javaWithCaching and create a new one...
                // and start the caching over again.
                _lastKnownApplicationClassloaderState = currentApplicationClasloaderState;
                _javaWithCaching = new JavaWithCaching();
View Full Code Here

    private static Map<Class, String> class2ConfigNameMapping = new HashMap<Class, String>();

    protected synchronized static String getJPAConfigNameForEntityClass(Class clazz) {

        // if there is changes to application classes we must invalidate the cache
        ApplicationClassloaderState currentState = Play.classloader.currentState;
        if (!currentState.equals(ourClassloaderState)) {
            // must invalidate cache
            ourClassloaderState = currentState;
            class2ConfigNameMapping.clear();
        }
View Full Code Here

    private static final Object _javaWithCachingLock = new Object();

    protected static JavaWithCaching getJavaWithCaching() {
        synchronized( _javaWithCachingLock ) {
            // has the state of the ApplicationClassloader changed?
            ApplicationClassloaderState currentApplicationClassloaderState = Play.classloader.currentState;
            if( !currentApplicationClassloaderState.equals( _lastKnownApplicationClassloaderState )) {
                // it has changed.
                // we must drop our current _javaWithCaching and create a new one...
                // and start the caching over again.
                _lastKnownApplicationClassloaderState = currentApplicationClassloaderState;
                _javaWithCaching = new JavaWithCaching();
View Full Code Here

TOP

Related Classes of play.classloading.ApplicationClassloaderState

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.