com.google.code.rees.scope.container
Class AbstractScopeContainer

java.lang.Object
  extended by com.google.code.rees.scope.container.AbstractScopeContainer
All Implemented Interfaces:
ScopeContainer, Serializable
Direct Known Subclasses:
StrutsScopeContainer

public abstract class AbstractScopeContainer
extends Object
implements ScopeContainer

See Also:
Serialized Form

Constructor Summary
AbstractScopeContainer()
           
 
Method Summary
<T> T
getComponent(Class<T> clazz)
           
protected abstract
<T> T
getComponentFromPrimaryContainer(Class<T> clazz)
           
<T> T
getProperty(Class<T> clazz, String name)
           
protected abstract
<T> T
getPropertyFromPrimaryContainer(Class<T> clazz, String name)
           
protected  void inject(Object component)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractScopeContainer

public AbstractScopeContainer()
Method Detail

getComponent

public <T> T getComponent(Class<T> clazz)
Specified by:
getComponent in interface ScopeContainer

getProperty

public <T> T getProperty(Class<T> clazz,
                         String name)
Specified by:
getProperty in interface ScopeContainer

inject

protected void inject(Object component)

getPropertyFromPrimaryContainer

protected abstract <T> T getPropertyFromPrimaryContainer(Class<T> clazz,
                                                         String name)

getComponentFromPrimaryContainer

protected abstract <T> T getComponentFromPrimaryContainer(Class<T> clazz)


Copyright © 2012-2013. All Rights Reserved.