Tabnine Logo
org.apache.tapestry5.ioc
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.tapestry5.ioc

Best Java code snippets using org.apache.tapestry5.ioc (Showing top 20 results out of 324)

origin: spockframework/spock

private void createAndStartupRegistry() {
 if (registry != null) return;
 RegistryBuilder builder = new RegistryBuilder();
 builder.add(ExtensionModule.class);
 for (Class<?> module : modules) builder.add(module);
 registry = builder.build();
 registry.performRegistryStartup();
}
origin: spockframework/spock

 private void shutdownRegistry() {
  if (registry != null)
   registry.shutdown();
 }
}
origin: spockframework/spock

public static void bind(ServiceBinder binder) {
 binder.bind(IService1.class, Service1.class);
 binder.bind(IService3.class, Service3.class);
}
origin: org.apache.tapestry/tapestry-jpa

public static void bind(final ServiceBinder binder)
{
  binder.bind(JpaTransactionAdvisor.class, JpaTransactionAdvisorImpl.class);
  binder.bind(PersistenceUnitConfigurer.class, PackageNamePersistenceUnitConfigurer.class).withSimpleId();
  binder.bind(EntityManagerSource.class, EntityManagerSourceImpl.class);
}
origin: org.got5/tapestry5-jquery

public static void bind(ServiceBinder binder) {
  binder.bind(Dispatcher.class,JSDispatcher.class).withId("js");
  binder.bind(JSHandler.class, JSHanderImpl.class);
  binder.bind(JSLocator.class,JSLocatorSession.class);
  binder.bind(JSSupport.class,JSSupportImpl.class);
}

origin: apache/tapestry-5

  public static void bind(ServiceBinder binder)
  {
    binder.bind(StringHolder.class, ToUpperCaseStringHolder.class).withSimpleId().preventReloading();
    binder.bind(StringHolder.class, MultipleConstructorsAutobuildService.class).preventReloading();
  }
}
origin: spockframework/spock

 public void contributeApplicationDefaults(MappedConfiguration<String, String> configuration) {
  configuration.add("configKey", "configValue");
 }
}
origin: apache/tapestry-5

  public static void bind(ServiceBinder binder)
  {
    binder.bind(StringHolder.class, StringHolderImpl.class).eagerLoad().scope("magic").withId("SH").preventDecoration();
  }
}
origin: apache/tapestry-5

public static void bind(ServiceBinder binder)
{
  binder.bind(Greeter.class, RedGreeterImpl.class).withId("RedGreeter");
  binder.bind(Greeter.class, UnknownColorGreeterImpl.class).withId("SecondRedGreeter")
      .withMarker(RedMarker.class);
  binder.bind(Greeter.class, RedGreeterImpl.class).withId("SurprisinglyBlueGreeter")
      .withMarker(BlueMarker.class);
  binder.bind(Greeter.class, RedGreeterImpl.class).withId("ColorfulGreeter")
      .withMarker(RedMarker.class, BlueMarker.class);
}
origin: net.sourceforge.tapestrytestify/tapestry-testify

@SuppressWarnings("unchecked")
public static void bind(ServiceBinder binder) {
  binder.bind(PerTestDataStore.class, ThreadLocalPerTestDataStore.class).withMarker(Builtin.class);
  binder.bind(ObjectsForComponentsStore.class, SimpleObjectsForComponentsStore.class).scope(TestifyConstants.PERTEST);
  binder.bind(CookieSinkSource.class, TestifyCookieSinkSource.class).scope(TestifyConstants.PERTEST);
}
origin: apache/tapestry-5

  public static void bind(ServiceBinder binder)
  {
    binder.bind(Runnable.class, AbstractRunnableService.class).preventReloading();
  }
}
origin: spockframework/spock

private void injectServices(Object target, boolean sharedFields) throws IllegalAccessException {
 for (final FieldInfo field : spec.getAllFields()) {
  Field rawField = field.getReflection();
  if ((rawField.isAnnotationPresent(Inject.class)
    || ReflectionUtil.isAnnotationPresent(rawField, "javax.inject.Inject")
    || rawField.isAnnotationPresent(Autobuild.class))
    && rawField.isAnnotationPresent(Shared.class) == sharedFields) {
   Object value = registry.getObject(rawField.getType(), createAnnotationProvider(field));
   rawField.setAccessible(true);
   rawField.set(target, value);
  } else if (rawField.isAnnotationPresent(InjectService.class)) {
   String serviceName = rawField.getAnnotation(InjectService.class).value();
   Object value = registry.getService(serviceName, rawField.getType());
   rawField.setAccessible(true);
   rawField.set(target, value);
  }
 }
}
origin: apache/tapestry-5

public static void bind(ServiceBinder binder)
{
  binder.bind(HibernateTransactionDecorator.class, HibernateTransactionDecoratorImpl.class);
  binder.bind(HibernateTransactionAdvisor.class, HibernateTransactionAdvisorImpl.class);
  binder.bind(HibernateConfigurer.class, DefaultHibernateConfigurer.class).withSimpleId();
  binder.bind(HibernateSessionSource.class, HibernateSessionSourceImpl.class);
}
origin: org.spockframework/spock-tapestry

private void createAndStartupRegistry() {
 if (registry != null) return;
 RegistryBuilder builder = new RegistryBuilder();
 builder.add(ExtensionModule.class);
 for (Class<?> module : modules) builder.add(module);
 registry = builder.build();
 registry.performRegistryStartup();
}
origin: org.got5/tapestry5-jquery

public static void bind(ServiceBinder binder) {
  binder.bind(WidgetParams.class, WidgetParamsImpl.class);
  binder.bind(EffectsParam.class, EffectsParamImpl.class);
  binder.bind(BindingFactory.class, SelectorBindingFactory.class).withId(
      "SelectorBindingFactory");
  binder.bind(RenderTracker.class, RenderTrackerImpl.class);
  binder.bind(JavaScriptFilesConfiguration.class,
      JavaScriptFilesConfigurationImpl.class);
  binder.bind(MessageProvider.class, MessageProviderImpl.class);
  binder.bind(JGrowlManager.class, JGrowlManagerImpl.class);
}
origin: spockframework/spock

 public static void bind(ServiceBinder binder) {
  binder.bind(IService2.class, Service2.class);
 }
}
origin: apache/tapestry-5

public static void bind(final ServiceBinder binder)
{
  binder.bind(FieldValidatorDefaultSource.class, BeanFieldValidatorDefaultSource.class).withSimpleId();
  binder.bind(BeanValidatorGroupSource.class, BeanValidationGroupSourceImpl.class);
  binder.bind(BeanValidatorSource.class, BeanValidatorSourceImpl.class);
  binder.bind(ClientConstraintDescriptorSource.class, ClientConstraintDescriptorImpl.class);
}
origin: org.chenillekit/chenillekit-test

public void setup_registry(Class<?>... moduleClasses)
{
  RegistryBuilder builder = new RegistryBuilder();
  builder.add(moduleClasses);
  registry = builder.build();
  registry.performRegistryStartup();
}
origin: org.apache.tapestry/tapestry-hibernate-core

public static void bind(ServiceBinder binder)
{
  binder.bind(HibernateTransactionDecorator.class, HibernateTransactionDecoratorImpl.class);
  binder.bind(HibernateTransactionAdvisor.class, HibernateTransactionAdvisorImpl.class);
  binder.bind(HibernateConfigurer.class, DefaultHibernateConfigurer.class).withSimpleId();
  binder.bind(HibernateSessionSource.class, HibernateSessionSourceImpl.class);
}
origin: org.apache.tapestry/tapestry-beanvalidator

public static void bind(final ServiceBinder binder)
{
  binder.bind(FieldValidatorDefaultSource.class, BeanFieldValidatorDefaultSource.class).withSimpleId();
  binder.bind(BeanValidatorGroupSource.class, BeanValidationGroupSourceImpl.class);
  binder.bind(BeanValidatorSource.class, BeanValidatorSourceImpl.class);
  binder.bind(ClientConstraintDescriptorSource.class, ClientConstraintDescriptorImpl.class);
}
org.apache.tapestry5.ioc

Most used classes

  • MappedConfiguration
  • ServiceBinder
    Allows a module to bind service interfaces to service implementation classes in support of autobuild
  • OrderedConfiguration
  • Contribute
  • CollectionFactory
  • Inject,
  • Symbol,
  • InternalUtils,
  • Registry,
  • ImportModule,
  • ServiceBindingOptions,
  • PostInjection,
  • Primary,
  • Scope,
  • UsesOrderedConfiguration,
  • FactoryDefaults,
  • PerthreadManager,
  • ExceptionUtils,
  • MethodAdviceReceiver
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now