org.sonatype.gshell.util.setter
Class SetterSupport

java.lang.Object
  extended by org.sonatype.gshell.util.setter.SetterSupport
All Implemented Interfaces:
Setter
Direct Known Subclasses:
FieldSetter, MethodSetter

public abstract class SetterSupport
extends Object
implements Setter

Support for Setter implementations.

Since:
2.0
Author:
Jason Dillon

Nested Class Summary
protected static class SetterSupport.Messages
           
 
Field Summary
protected  org.slf4j.Logger log
           
 
Constructor Summary
SetterSupport(AccessibleObject accessible, Object bean)
           
 
Method Summary
protected abstract  void doSet(Object value)
           
 AccessibleObject getAccessible()
           
 Object getBean()
           
 void set(Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sonatype.gshell.util.setter.Setter
getName, getType, isMultiValued
 

Field Detail

log

protected final org.slf4j.Logger log
Constructor Detail

SetterSupport

public SetterSupport(AccessibleObject accessible,
                     Object bean)
Method Detail

getAccessible

public AccessibleObject getAccessible()

getBean

public Object getBean()
Specified by:
getBean in interface Setter

set

public void set(Object value)
Specified by:
set in interface Setter

doSet

protected abstract void doSet(Object value)
                       throws IllegalAccessException
Throws:
IllegalAccessException


Copyright © 2008-2011 Sonatype. All Rights Reserved.