ProgramixGenericLib v5.0.1

com.programix.da2
Interface DecoratorDA

All Superinterfaces:
GenericDA

public interface DecoratorDA
extends GenericDA


Method Summary
 void setDecoree(GenericDA decoree)
          Specifies the decoree that is to be decorated by this decorator.
 
Methods inherited from interface com.programix.da2.GenericDA
init, shutdown
 

Method Detail

setDecoree

void setDecoree(GenericDA decoree)
                throws DAException
Specifies the decoree that is to be decorated by this decorator. This method will be called after the inherited method init(ValueMap config) is called.

There's no guarantee about the exact type passed in other than it is at the very least an implementation of GenericDA. If you expect something more specific, then check inside your implementation for this type and throw a DAException if the type is not correct.

Parameters:
decoree - the GenericDA to be decorated, or wrapped by this decorator.
Throws:
DAException - if there are problems setting this source on this instance (perhaps it is incompatible).

ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.