@Produces public AtmosphereConfig getAtmosphereConfig() { return config; }
/** * @author Arun Gupta */ @Alternative public class SimpleGreeting implements Greeting { @Override public String greet(String name) { return "Hello " + name; } }
/** * @author Arun Gupta */ @Vetoed public class SimpleGreeting implements Greeting { @Override public String greet(String name) { return "Hello " + name; } }
@Produces @Alternative public Greeting getGreeting() { return new SimpleGreeting(); } }
@Override public UpnpServiceConfiguration getConfiguration() { return configuration.get(); }
/** * <p> * Determines if there is exactly one bean that matches the required type and qualifiers and is eligible for injection * into the class into which the parent <tt>Instance</tt> was injected. * </p> * * @since 2.0 * @return <tt>true</tt> if there is exactly one bean that matches the required type and qualifiers and is eligible for * injection into the class into which the parent <tt>Instance</tt> was injected, or <tt>false</tt> otherwise. */ default boolean isResolvable() { return !isUnsatisfied() && !isAmbiguous(); }
public static Literal of(Class<?> value) { return new Literal(value); }
public static Literal of(Class<?>[] value) { return new Literal(value); }
@Produces public AtmosphereResourceFactory getAtmosphereResourceFactory() { return config.resourcesFactory(); }
@Override public Router getRouter() { return routerInstance.get(); }
/** * @author Arun Gupta * @author Radim Hanus */ @Alternative public class SimpleGreeting implements Greeting { @Override public String greet(String name) { return "Hello " + name; } }
@Produces public AtmosphereResourceSessionFactory getAtmosphereResourceSessionFactory() { return config.sessionFactory(); }
@Override public ControlPoint getControlPoint() { return controlPointInstance.get(); }
/** * @author Arun Gupta */ @Alternative public class FancyGreeting implements Greeting { @Override public String greet(String name) { return "Nice to meet you, hello" + name; } }
@Produces public MetaBroadcaster getMetaBroadcaster() { return config.metaBroadcaster(); }
@Override public Registry getRegistry() { return registryInstance.get(); }
@Produces public BroadcasterFactory getBroadcasterFactory() { return config.getBroadcasterFactory(); }
@Override public ProtocolFactory getProtocolFactory() { return protocolFactoryInstance.get(); }
@Produces public WebSocketFactory getWebSocketFactory() { return config.websocketFactory(); }
@Produces public AtmosphereFramework getAtmosphereFramework() { return config.framework(); }