All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tectonica.guice.GuiceJsfModule Maven / Gradle / Ivy

package com.tectonica.guice;

import com.google.inject.AbstractModule;
import com.google.inject.matcher.Matchers;

public class GuiceJsfModule extends AbstractModule
{
	@Override
	protected void configure()
	{
		// add support for the @PostConstruct annotation for Guice-injected objects
		// if you choose to remove it, also modify GuiceJsfInjector.invokePostConstruct()
		bindListener(Matchers.any(), new PostConstructTypeListener(null));

		doCustomBinds();
	}

	/**
	 * override to perform application-logic bindings, typically between interfaces and concrete implementations. For example:
	 * 
	 * 
	 * bind(MyIntf.class).to(MyImpl.class);
	 * 
	 */
	protected void doCustomBinds()
	{}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy