se.jbee.inject.config.Edition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of silk-di Show documentation
Show all versions of silk-di Show documentation
Silk Java dependency injection framework
/*
* Copyright (c) 2012, Jan Bernitt
*
* Licensed under the Apache License, Version 2.0, http://www.apache.org/licenses/LICENSE-2.0
*/
package se.jbee.inject.config;
import se.jbee.inject.bootstrap.Bundle;
import se.jbee.inject.bootstrap.Module;
/**
* An {@link Edition} decides wich features are contained in a specific setup.
*
* @author Jan Bernitt ([email protected])
*/
public interface Edition {
/**
* Default {@link Edition} that has all features.
*/
Edition FULL = new Edition() {
@Override
public boolean featured( Class> bundleOrModule ) {
return true;
}
};
/**
* @return true if the given {@link Class} of a {@link Module} or {@link Bundle} should be
* included in the context created (should be installed).
*/
boolean featured( Class> bundleOrModule );
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy