
com.cookingfox.chefling.impl.command.CreateChildContainerCommandImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chefling-di-java Show documentation
Show all versions of chefling-di-java Show documentation
Chefling is a very minimal dependency injection container written in pure Java.
package com.cookingfox.chefling.impl.command;
import com.cookingfox.chefling.api.CheflingContainer;
import com.cookingfox.chefling.api.command.CreateChildContainerCommand;
/**
* @see CreateChildContainerCommand
*/
public class CreateChildContainerCommandImpl extends AbstractCommand implements CreateChildContainerCommand {
public CreateChildContainerCommandImpl(CommandContainer container) {
super(container);
}
@Override
public CheflingContainer createChildContainer() {
CheflingContainer child = new CommandContainer();
_container.addChildContainer(child);
return child;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy