ooc
Interface Template

All Superinterfaces:
java.lang.Cloneable

public interface Template
extends java.lang.Cloneable

If class A need to produce instances of class B at runtime a cloneable instance can be injected into A such that when cloned an instance of class B is returned. This interface is provided to make the clone method public else it must be invoked using reflection, that is template.getClass().getMethod("clone",null).invoke(template, null);


Method Summary
 java.lang.Object clone()
           
 

Method Detail

clone

public java.lang.Object clone()