jodd-madvoc/src/main/java/jodd/madvoc/component/ScopeResolver.java
@SuppressWarnings("unchecked")
	public <S extends MadvocScope> S defaultOrScopeType(final Class<S> scopeClass) {
		if (scopeClass == null) {
			return (S) getOrInitScope(RequestScope.class);
		}

		return (S) getOrInitScope(scopeClass);
	}
@SuppressWarnings("unchecked")
	public <S extends MadvocScope> S defaultOrScopeType(final Class<S> scopeClass) {
		if (scopeClass == null) {
			return (S) getOrInitScope(RequestScope.class);
		}

		return (S) getOrInitScope(scopeClass);
	}
@ SuppressWarnings ( "unchecked" ) public < S extends MadvocScope > S defaultOrScopeType ( final Class < S > scopeClass ) { if ( scopeClass == null ) { return ( S ) getOrInitScope ( RequestScope . class ) ; } return ( S ) getOrInitScope ( scopeClass ) ; }
Lookups the scope instance of given scope annotation.
If instance does not exist, it will be created, cached and returned.
Lookups the scope instance of given scope annotation . If instance does not exist it will be created cached and returned .