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

How to use
LifecycleCallback
in
org.jboss.ejb3.metamodel

Best Java code snippets using org.jboss.ejb3.metamodel.LifecycleCallback (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: org.jboss/jboss-metadata

public void setValue(LifecycleCallback lifecycleCallback, UnmarshallingContext navigator, String namespaceURI, String localName, String value)
{
 if (localName.equals("lifecycle-callback-class"))
   lifecycleCallback.setLifecycleCallbackClass(value);
 else if (localName.equals("lifecycle-callback-method"))
   lifecycleCallback.setLifecycleCallbackMethod(value);
 else throw new IllegalArgumentException(localName);
}
origin: org.jboss.ws/jbossws-jboss510-metadata

public Object newChild(ApplicationClientDD parent, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs)
{
 Object child = super.newEnvRefGroupChild(localName);
 if (child != null)
   return child;
 if (localName.equals("post-construct") || localName.equals("pre-destroy"))
 {
   child = new LifecycleCallback();
 }
 else if (localName.equals("message-destination"))
 {
   child = new MessageDestination();
 }
 // ignore things like display-name & description
 return child;
}
origin: org.jboss/jboss-metadata

public Object newChild(ApplicationClientDD parent, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs)
{
 Object child = super.newEnvRefGroupChild(localName);
 if (child != null)
   return child;
 if (localName.equals("post-construct") || localName.equals("pre-destroy"))
 {
   child = new LifecycleCallback();
 }
 else if (localName.equals("message-destination"))
 {
   child = new MessageDestination();
 }
 // ignore things like display-name & description
 return child;
}
origin: org.jboss.ws/jbossws-jboss510-metadata

public void setValue(LifecycleCallback lifecycleCallback, UnmarshallingContext navigator, String namespaceURI, String localName, String value)
{
 if (localName.equals("lifecycle-callback-class"))
   lifecycleCallback.setLifecycleCallbackClass(value);
 else if (localName.equals("lifecycle-callback-method"))
   lifecycleCallback.setLifecycleCallbackMethod(value);
 else throw new IllegalArgumentException(localName);
}
org.jboss.ejb3.metamodelLifecycleCallback

Javadoc

The lifecycle-callback type specifies a method on a class to be called when a lifecycle event occurs. Note that each class may have only one lifecycle callback method for any given event and that the method may not be overloaded. If the lifefycle-callback-class element is missing then the class defining the callback is assumed to be the component class in scope at the place in the descriptor in which the callback definition appears.

Most used methods

  • <init>
  • setLifecycleCallbackClass
  • setLifecycleCallbackMethod

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
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