org.apache.tapestry5.ioc.ServiceBinder Java Examples
The following examples show how to use
org.apache.tapestry5.ioc.ServiceBinder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SecurityModule.java From tapestry-security with Apache License 2.0 | 6 votes |
public static void bind(final ServiceBinder binder) { binder.bind(WebSecurityManager.class, TapestryRealmSecurityManager.class); // TYNAMO-155 It's not enough to identify ModularRealmAuthenticator by it's Authenticator interface only // because Shiro tests if the object is an instanceof LogoutAware to call logout handlers binder.bind(ModularRealmAuthenticator.class); binder.bind(SubjectFactory.class, DefaultWebSubjectFactory.class); binder.bind(HttpServletRequestFilter.class, SecurityConfiguration.class).withId("SecurityConfiguration").withMarker(Security.class); binder.bind(ClassInterceptorsCache.class, ClassInterceptorsCacheImpl.class); binder.bind(SecurityService.class, SecurityServiceImpl.class); binder.bind(SecurityFilterChainFactory.class, SecurityFilterChainFactoryImpl.class); binder.bind(ComponentRequestFilter.class, SecurityComponentRequestFilter.class); binder.bind(SecurityFilterChainHub.class, SecurityFilterChainHubImpl.class); // binder.bind(ShiroExceptionHandler.class); binder.bind(LoginContextService.class, LoginContextServiceImpl.class); binder.bind(Serializer.class, SimplePrincipalSerializer.class); }
Example #2
Source File: AppModule.java From tapestry-security with Apache License 2.0 | 5 votes |
public static void bind(ServiceBinder binder) { binder.bind(AlphaService.class, AlphaServiceImpl.class).preventReloading().eagerLoad(); binder.bind(BetaService.class, BetaServiceImpl.class); // Make bind() calls on the binder object to define most IoC services. // Use service builder methods (example below) when the implementation // is provided inline, or requires more initialization than simply // invoking the constructor. }
Example #3
Source File: AppModule.java From FrameworkBenchmarks with BSD 3-Clause "New" or "Revised" License | 5 votes |
public static void bind(ServiceBinder binder) { // binder.bind(MyServiceInterface.class, MyServiceImpl.class); // Make bind() calls on the binder object to define most IoC services. // Use service builder methods (example below) when the implementation // is provided inline, or requires more initialization than simply // invoking the constructor. }
Example #4
Source File: AppModule.java From tutorials with MIT License | 5 votes |
public static void bind(ServiceBinder binder) { // binder.bind(MyServiceInterface.class, MyServiceImpl.class); // Make bind() calls on the binder object to define most IoC services. // Use service builder methods (example below) when the implementation // is provided inline, or requires more initialization than simply // invoking the constructor. }
Example #5
Source File: FalseContributionModule.java From tapestry-security with Apache License 2.0 | 4 votes |
public static void bind(ServiceBinder binder){ binder.bind(AFilter.class, AFilter.class); }
Example #6
Source File: TestModule.java From tapestry-security with Apache License 2.0 | 4 votes |
public static void bind(ServiceBinder binder) { binder.bind(GammaService.class, GammaServiceImpl.class); }
Example #7
Source File: QaModule.java From FrameworkBenchmarks with BSD 3-Clause "New" or "Revised" License | 4 votes |
public static void bind(ServiceBinder binder) { // Bind any services needed by the QA team to produce their reports // binder.bind(MyServiceMonitorInterface.class, MyServiceMonitorImpl.class); }
Example #8
Source File: QaModule.java From tutorials with MIT License | 4 votes |
public static void bind(ServiceBinder binder) { // Bind any services needed by the QA team to produce their reports // binder.bind(MyServiceMonitorInterface.class, MyServiceMonitorImpl.class); }