Package org.apache.tuscany.sca.core.scope

Examples of org.apache.tuscany.sca.core.scope.ScopedImplementationProvider


        // Check to see if the maxAge has been specified using @ConversationAttributes. 
        // Implementation annotated attributes are honoured first.
        if ((impProvider != null) &&
            (impProvider instanceof ScopedImplementationProvider)) {
            ScopedImplementationProvider aScopedImpl =
                (ScopedImplementationProvider) impProvider;

            long maxAge = aScopedImpl.getMaxAge();
            if (maxAge > 0) {
                return maxAge;
            }
        }
        return manager.getMaxAge();
View Full Code Here


        if (component.getScopeContainer() != null) {
            return component.getScopeContainer();
        }
        ImplementationProvider implementationProvider = component.getImplementationProvider();
        if (implementationProvider instanceof ScopedImplementationProvider) {
            ScopedImplementationProvider provider = (ScopedImplementationProvider)implementationProvider;
            Scope scope = provider.getScope();
            if (scope == null) {
                scope = Scope.STATELESS;
            } else if (scope.equals(Scope.INVALID)) {
              return null;
            }
View Full Code Here

    private long getMaxIdleTime(ImplementationProvider impProvider) {
        // Check to see if the maxIdleTime has been specified using @ConversationAttributes. 
        // Implementation annotated attributes are honoured first.
        if ((impProvider != null) &&
            (impProvider instanceof ScopedImplementationProvider)) {
            ScopedImplementationProvider aScopedImpl =
                (ScopedImplementationProvider) impProvider;
           
            long maxIdleTime = aScopedImpl.getMaxIdleTime();
            if (maxIdleTime > 0) {
                return maxIdleTime;
            }
        }
        return manager.getMaxIdleTime();
View Full Code Here

        // Check to see if the maxAge has been specified using @ConversationAttributes. 
        // Implementation annotated attributes are honoured first.
        if ((impProvider != null) &&
            (impProvider instanceof ScopedImplementationProvider)) {
            ScopedImplementationProvider aScopedImpl =
                (ScopedImplementationProvider) impProvider;

            long maxAge = aScopedImpl.getMaxAge();
            if (maxAge > 0) {
                return maxAge;
            }
        }
        return manager.getMaxAge();
View Full Code Here

    private long getMaxIdleTime(ImplementationProvider impProvider) {
        // Check to see if the maxIdleTime has been specified using @ConversationAttributes. 
        // Implementation annotated attributes are honoured first.
        if ((impProvider != null) &&
            (impProvider instanceof ScopedImplementationProvider)) {
            ScopedImplementationProvider aScopedImpl =
                (ScopedImplementationProvider) impProvider;
           
            long maxIdleTime = aScopedImpl.getMaxIdleTime();
            if (maxIdleTime > 0) {
                return maxIdleTime;
            }
        }
        return manager.getMaxIdleTime();
View Full Code Here

        // Check to see if the maxAge has been specified using @ConversationAttributes. 
        // Implementation annotated attributes are honoured first.
        if ((impProvider != null) &&
            (impProvider instanceof ScopedImplementationProvider)) {
            ScopedImplementationProvider aScopedImpl =
                (ScopedImplementationProvider) impProvider;

            long maxAge = aScopedImpl.getMaxAge();
            if (maxAge > 0) {
                return maxAge;
            }
        }
        return manager.getMaxAge();
View Full Code Here

        if (component.getScopeContainer() != null) {
            return component.getScopeContainer();
        }
        ImplementationProvider implementationProvider = component.getImplementationProvider();
        if (implementationProvider instanceof ScopedImplementationProvider) {
            ScopedImplementationProvider provider = (ScopedImplementationProvider)implementationProvider;
            Scope scope = provider.getScope();
            if (scope == null) {
                scope = Scope.STATELESS;
            }
            ScopeContainerFactory factory = scopeCache.get(scope);
            ScopeContainer container = factory.createScopeContainer(component);
View Full Code Here

        if (component.getScopeContainer() != null) {
            return component.getScopeContainer();
        }
        ImplementationProvider implementationProvider = component.getImplementationProvider();
        if (implementationProvider instanceof ScopedImplementationProvider) {
            ScopedImplementationProvider provider = (ScopedImplementationProvider)implementationProvider;
            Scope scope = provider.getScope();
            if (scope == null) {
                scope = Scope.STATELESS;
            } else if (scope.equals(Scope.INVALID)) {
              return null;
            }
View Full Code Here

        if (component.getScopeContainer() != null) {
            return component.getScopeContainer();
        }
        ImplementationProvider implementationProvider = component.getImplementationProvider();
        if (implementationProvider instanceof ScopedImplementationProvider) {
            ScopedImplementationProvider provider = (ScopedImplementationProvider)implementationProvider;
            Scope scope = provider.getScope();
            if (scope == null) {
                scope = Scope.STATELESS;
            } else if (scope.equals(Scope.INVALID)) {
              return null;
            }
View Full Code Here

        if (component.getScopeContainer() != null) {
            return component.getScopeContainer();
        }
        ImplementationProvider implementationProvider = component.getImplementationProvider();
        if (implementationProvider instanceof ScopedImplementationProvider) {
            ScopedImplementationProvider provider = (ScopedImplementationProvider)implementationProvider;
            Scope scope = provider.getScope();
            if (scope == null) {
                scope = Scope.STATELESS;
            } else if (scope.equals(Scope.INVALID)) {
              return null;
            }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.core.scope.ScopedImplementationProvider

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.