@Name("org.jboss.seam.el.referenceCache") @Scope(ScopeType.APPLICATION) @Startup public class JBossELReferenceCache { @Create public void start() { ReflectionUtil.startup(); } @Destroy public void stop() { ReflectionUtil.shutdown(); } }
public String[] getStartupDependencies() { if (startupDepends != null && startupDepends.length > 0) { return startupDepends; } Startup startup = componentClass.getAnnotation(Startup.class); if (startup != null) { return startup.depends(); } return new String[0]; }
@Startup @Name("userSession") @Scope(SESSION)
private void initStartup() { if (startup) { if (scope!=SESSION && scope!=APPLICATION) { throw new IllegalArgumentException("@Startup only supported for SESSION or APPLICATION scoped components: " + name); } Startup annotation = getBeanClass().getAnnotation(Startup.class); if (dependencies.length == 0 && annotation != null) { dependencies = annotation.depends(); } } }
/** * @author Marcel Kolsteren * @since Jan 30, 2010 */ @Name("org.picketlink.identity.seam.federation.openIdConsumerManager") @Scope(ScopeType.APPLICATION) @BypassInterceptors @Startup public class OpenIdConsumerManagerFactory { private ConsumerManager consumerManager; @Unwrap public ConsumerManager getConsumerManager() { return consumerManager; } @Create public void startup(Component component) throws Exception { consumerManager = new ConsumerManager(); } }
@Startup public class EntityManagerFactory
@Stateful @Scope(ScopeType.APPLICATION) @Startup public class IndexerAction implements Indexer
@Startup public class HibernateSessionFactory
@Startup @Name("conversationIdGenerator") @Scope(SESSION)
@Startup @Install(value=false, precedence = FRAMEWORK) public class Injector implements Serializable
@Startup @Install(precedence = FRAMEWORK, classDependencies = "com.google.inject.Injector") @BypassInterceptors
@Name("org.jboss.seam.web.session") @BypassInterceptors @Startup public class Session extends AbstractMutable
@Startup public class LocaleStartup implements Serializable {
@Install(precedence = BUILT_IN, classDependencies = "javax.faces.context.FacesContext") @BypassInterceptors @Startup public class FacesTransactionEvents
@Startup @Install(precedence = FRAMEWORK) public class EventManager implements Serializable {
@Startup public class UserServicesContext implements Serializable {
@Startup @Name("paralleleNavigationHelper") @Scope(SESSION)
@Startup(depends="org.jboss.seam.ioc.spring.springELResolver") @Name("org.jboss.seam.ioc.spring.contextLoader") @Install(value = false, precedence = BUILT_IN)
@Name("org.jboss.seam.navigation.pages") @Install(precedence = Install.FRAMEWORK, classDependencies = "javax.faces.context.FacesContext") @Startup public class PagesSupportingExternalAuthentication extends Pages
@Install(precedence = BUILT_IN, classDependencies = "javax.faces.context.FacesContext") @BypassInterceptors @Startup public class FacesSecurityEvents