MentaContainer

Rev

Rev 65 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package org.mentacontainer.impl;

import org.mentacontainer.Component;

public class InstanceComponent implements Component {
       
        private final Object instance;
       
       
        public InstanceComponent(Object instance) {

                this.instance = instance;
        }
       
        public <T> T getInstance()  {
               
                return (T) instance;
        }
}