net.sf.composite.specialize.specializers
Class CachingSpecializerProxy

java.lang.Object
  extended by net.sf.composite.specialize.specializers.BaseSpecializer
      extended by net.sf.composite.specialize.specializers.CachingSpecializerProxy
All Implemented Interfaces:
Specializer

public class CachingSpecializerProxy
extends BaseSpecializer

Caches specialized versions of a composite so that they do not have to be reconstructed for each request for a specialized version of the composite.

Since:
Mar 11, 2005
Author:
Matt Sgarlata

Field Summary
 
Fields inherited from class net.sf.composite.specialize.specializers.BaseSpecializer
log
 
Constructor Summary
CachingSpecializerProxy()
           
CachingSpecializerProxy(Specializer specializer)
           
 
Method Summary
 Specializer getSpecializer()
           
protected  boolean isSpecializableImpl(java.lang.Object composite, java.lang.Class specializedType)
          Implementation template method.
 void setSpecializer(Specializer specializer)
           
protected  java.lang.Object specializeImpl(java.lang.Object composite, java.lang.Class specializedType)
           
 
Methods inherited from class net.sf.composite.specialize.specializers.BaseSpecializer
getComponentAccessor, isSpecializable, setComponentAccessor, specialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingSpecializerProxy

public CachingSpecializerProxy()

CachingSpecializerProxy

public CachingSpecializerProxy(Specializer specializer)
Method Detail

isSpecializableImpl

protected boolean isSpecializableImpl(java.lang.Object composite,
                                      java.lang.Class specializedType)
                               throws java.lang.Exception
Description copied from class: BaseSpecializer
Implementation template method.

Specified by:
isSpecializableImpl in class BaseSpecializer
Returns:
boolean
Throws:
java.lang.Exception

specializeImpl

protected java.lang.Object specializeImpl(java.lang.Object composite,
                                          java.lang.Class specializedType)
                                   throws java.lang.Exception
Specified by:
specializeImpl in class BaseSpecializer
Throws:
java.lang.Exception

getSpecializer

public Specializer getSpecializer()

setSpecializer

public void setSpecializer(Specializer specializer)


Copyright © 2005-2008.