Codota Logo
ConstructedValue
Code IndexAdd Codota to your IDE (free)

How to use
ConstructedValue
in
org.jboss.msc.value

Best Java code snippets using org.jboss.msc.value.ConstructedValue (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: wildfly/wildfly

  private InterceptorFactory createInterceptorFactoryForContainerInterceptor(final Method method, final Constructor interceptorConstructor) {
    // The managed reference is going to be ConstructedValue, using the container-interceptor's constructor
    final ConstructedValue interceptorInstanceValue = new ConstructedValue(interceptorConstructor, Collections.<Value<?>>emptyList());
    // we *don't* create multiple instances of the container-interceptor class, but we just reuse a single instance and it's *not*
    // tied to the EJB component instance lifecycle.
    final CachedValue cachedInterceptorInstanceValue = new CachedValue(interceptorInstanceValue);
    // ultimately create the managed reference which is backed by the CachedValue
    final ManagedReference interceptorInstanceRef = new ValueManagedReference(cachedInterceptorInstanceValue);
    // return the ContainerInterceptorMethodInterceptorFactory which is responsible for creating an Interceptor
    // which can invoke the container-interceptor's around-invoke/around-timeout methods
    return new ContainerInterceptorMethodInterceptorFactory(interceptorInstanceRef, method);
  }
}
origin: org.jboss.as/jboss-as-ejb3

  private InterceptorFactory createInterceptorFactoryForContainerInterceptor(final Method method, final Constructor interceptorConstructor) {
    // The managed reference is going to be ConstructedValue, using the container-interceptor's constructor
    final ConstructedValue interceptorInstanceValue = new ConstructedValue(interceptorConstructor, Collections.<Value<?>>emptyList());
    // we *don't* create multiple instances of the container-interceptor class, but we just reuse a single instance and it's *not*
    // tied to the EJB component instance lifecycle.
    final CachedValue cachedInterceptorInstanceValue = new CachedValue(interceptorInstanceValue);
    // ultimately create the managed reference which is backed by the CachedValue
    final ManagedReference interceptorInstanceRef = new ValueManagedReference(cachedInterceptorInstanceValue);
    // return the ContainerInterceptorMethodInterceptorFactory which is responsible for creating a Interceptor
    // which can invoke the container-interceptor's around-invoke/around-timeout methods
    return new ContainerInterceptorMethodInterceptorFactory(interceptorInstanceRef, method);
  }
}
origin: org.jboss.as/jboss-as-ee

  throw MESSAGES.defaultConstructorNotFound(configuration.getComponentClass());
ValueManagedReferenceFactory factory = new ValueManagedReferenceFactory(new ConstructedValue<Object>(constructor, Collections.<Value<?>>emptyList()));
instantiators.addFirst(new ManagedReferenceInterceptorFactory(factory, instanceKey));
instantiators.addFirst(new ManagedReferenceInterceptorFactory(new ValueManagedReferenceFactory(new ConstructedValue(constructor, Collections.<Value<?>>emptyList())), contextKey));
destructors.addLast(new ManagedReferenceReleaseInterceptorFactory(contextKey));
org.jboss.msc.valueConstructedValue

Javadoc

A value which is created on demand from a constructor. Each call to #getValue() will create a new instance, so if the same instance should be returned, this should be used in conjunction with CachedValue.

Most used methods

  • <init>
    Construct a new instance.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getContentResolver (Context)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now