org.viewaframework.view.delegator
Class DefaultViewResourceDelegator

java.lang.Object
  extended by org.viewaframework.view.delegator.DefaultViewResourceDelegator
All Implemented Interfaces:
Delegator, ViewResourceDelegator

public class DefaultViewResourceDelegator
extends Object
implements ViewResourceDelegator

This class gets the Resources Available for a view

Author:
Mario GarcĂ­a

Constructor Summary
DefaultViewResourceDelegator()
          Default constructor.
 
Method Summary
 void clean(ViewContainer viewContainer)
           
 LastModifiedControl getControl()
          If no control is defined it returns a org.viewaframework.util.LastModifiedControl class.
 ViewContainer getView()
           
 ResourceBundle getViewBundle()
           
 void inject(ViewContainer ob)
           
 void setControl(LastModifiedControl control)
           
 void setView(ViewContainer view)
           
 void setViewBundle(ResourceBundle viewBundle)
           
 void setViewResourceConverters(Map<Class<? extends Object>,ViewResourceConverter> converters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultViewResourceDelegator

public DefaultViewResourceDelegator()
Default constructor.

Method Detail

clean

public void clean(ViewContainer viewContainer)
Specified by:
clean in interface Delegator

getControl

public LastModifiedControl getControl()
If no control is defined it returns a org.viewaframework.util.LastModifiedControl class.

Returns:
The control that defines the bundle's cache policy

getView

public ViewContainer getView()
Returns:

getViewBundle

public ResourceBundle getViewBundle()
Returns:

inject

public void inject(ViewContainer ob)
Specified by:
inject in interface Delegator

setControl

public void setControl(LastModifiedControl control)
Parameters:
control -

setView

public void setView(ViewContainer view)
Parameters:
view -

setViewBundle

public void setViewBundle(ResourceBundle viewBundle)
Parameters:
viewBundle -

setViewResourceConverters

public void setViewResourceConverters(Map<Class<? extends Object>,ViewResourceConverter> converters)
Specified by:
setViewResourceConverters in interface ViewResourceDelegator


Copyright © 2010. All Rights Reserved.