org.apache.cayenne.di.spi
Class DefaultScopeProvider<T>

java.lang.Object
  extended by org.apache.cayenne.di.spi.DefaultScopeProvider<T>
All Implemented Interfaces:
Provider<T>

public class DefaultScopeProvider<T>
extends java.lang.Object
implements Provider<T>

A provider that provides scoping for other providers.

Since:
3.1

Constructor Summary
DefaultScopeProvider(DefaultScope scope, Provider<T> delegate)
           
 
Method Summary
 void afterScopeEnd()
           
 T get()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultScopeProvider

public DefaultScopeProvider(DefaultScope scope,
                            Provider<T> delegate)
Method Detail

get

public T get()
Specified by:
get in interface Provider<T>

afterScopeEnd

@AfterScopeEnd
public void afterScopeEnd()
                   throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2001-2012 Apache Cayenne. All Rights Reserved.