Examples of methodsFor()


Examples of com.netflix.governator.lifecycle.LifecycleMethods.methodsFor()

        }
    }

    private boolean warmUpIsInDag(Class<?> clazz, TypeLiteral<?> type) {
        LifecycleMethods methods = getLifecycleMethods(clazz);
        if ( methods.methodsFor(WarmUp.class).size() > 0 ) {
            return true;
        }

        if ( warmUpIsInDag(getConstructorInjectionPoint(type)) ) {
            return true;
View Full Code Here

Examples of com.netflix.governator.lifecycle.LifecycleMethods.methodsFor()

            Thread.currentThread().setContextClassLoader(obj.getClass().getClassLoader());
           
            warmUpDriver.setState(obj, LifecycleState.WARMING_UP);

            LifecycleMethods    lifecycleMethods = dagManager.getLifecycleMethods(node.getKey());
            Collection<Method>  methods = (lifecycleMethods != null) ? lifecycleMethods.methodsFor(WarmUp.class) : null;

            LifecycleState      newState = LifecycleState.ACTIVE;
            try
            {
                if ( methods != null )
View Full Code Here

Examples of com.netflix.governator.lifecycle.LifecycleMethods.methodsFor()

    }

    private boolean hasWarmUpMethod(final Object bridge)
    {
        final LifecycleMethods lifecycleMethods = keyToLifecycle.get(bridge);
        return null != lifecycleMethods && !lifecycleMethods.methodsFor(WarmUp.class).isEmpty();
    }

    /*
     * With the addition of implicit dependencies, circular dependencies are now possible.
     */
 
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.