com.atlassian.plugins.rest.common.expand
Class SelfExpandingExpander

java.lang.Object
  extended by com.atlassian.plugins.rest.common.expand.AbstractRecursiveEntityExpander<SelfExpanding>
      extended by com.atlassian.plugins.rest.common.expand.SelfExpandingExpander
All Implemented Interfaces:
EntityExpander<SelfExpanding>

public class SelfExpandingExpander
extends AbstractRecursiveEntityExpander<SelfExpanding>

This is a general-purpose expander for atlassian-rest that delegates the expand process to the entity that is to be expanded (instead of having that knowledge in a separate EntityExpander. As a result, this expander can be used for every entity that implements SelfExpanding.

Since:
v1.0.7
Author:
Erik van Zijst

Nested Class Summary
static class SelfExpandingExpander.Resolver
          To use the self expanding mechanism, make sure you register an instance of this EntityExpanderResolver in your application's ExpandResponseFilter.
 
Constructor Summary
SelfExpandingExpander()
           
 
Method Summary
protected  SelfExpanding expandInternal(SelfExpanding selfExpandingObject)
           
 
Methods inherited from class com.atlassian.plugins.rest.common.expand.AbstractRecursiveEntityExpander
expand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelfExpandingExpander

public SelfExpandingExpander()
Method Detail

expandInternal

protected SelfExpanding expandInternal(SelfExpanding selfExpandingObject)
Specified by:
expandInternal in class AbstractRecursiveEntityExpander<SelfExpanding>


Copyright © 2014 Atlassian. All Rights Reserved.