MentaContainer

Compare Revisions

Ignore whitespace Rev 64 → Rev 65

/trunk/src/main/java/org/mentacontainer/impl/InstanceComponent.java
New file
0,0 → 1,19
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;
}
}