idx
int64
0
41.2k
question
stringlengths
83
4.15k
target
stringlengths
5
715
38,200
@ FFDCIgnore ( { PrivilegedActionException . class } ) protected InputStream getInputStream ( final File f , String fileSystemSelector , String location , String classLoadingSelector ) throws IOException { if ( f != null ) { InputStream is = null ; try { is = ( FileInputStream ) AccessController . doPrivileged ( new Pr...
open an input stream to either a file on the file system or a url on the classpath . Update the locationUsed class variable to note where we got the stream from so results of reading it can be cached properly
38,201
public boolean parseJwk ( String keyText , FileInputStream inputStream , JWKSet jwkset , String signatureAlgorithm ) { boolean bJwk = false ; if ( keyText != null ) { bJwk = parseKeyText ( keyText , locationUsed , jwkset , signatureAlgorithm ) ; } else if ( inputStream != null ) { String keyAsString = getKeyAsString ( ...
separate to be an independent method for unit tests
38,202
public CompletableFuture < T > newIncompleteFuture ( ) { if ( JAVA8 ) return new ManagedCompletionStage < T > ( new CompletableFuture < T > ( ) , defaultExecutor , null ) ; else return new ManagedCompletionStage < T > ( defaultExecutor ) ; }
minimalCompletionStage is allowed because java . util . concurrent . CompletableFuture s minimalCompletionStage allows it
38,203
@ SuppressWarnings ( "hiding" ) < T > CompletableFuture < T > newInstance ( CompletableFuture < T > completableFuture , Executor managedExecutor , FutureRefExecutor futureRef ) { return new ManagedCompletionStage < T > ( completableFuture , managedExecutor , futureRef ) ; }
This method is only for Java SE 8 . It is used to override the newInstance method of ManagedCompletableFuture to ensure that newly created instances are ManagedCompletionStage .
38,204
public void becomeCloneOf ( ManagedObject other ) { final String methodName = "becomeCloneOf" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , other ) ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclas...
Replace the state of this object with the same object in some other state . Used for to restore the before immage if a transaction rolls back or is read from the log during restart .
38,205
private boolean setState ( State newState ) { switch ( newState ) { case DEPLOYED : return changeState ( State . DEPLOYING , State . DEPLOYED ) ; case DEPLOYING : return ( changeState ( State . UNDEPLOYED , State . DEPLOYING ) || changeState ( State . FAILED , State . DEPLOYING ) ) ; case UNDEPLOYING : return changeSta...
state should only transition while the terminated lock is held .
38,206
Event createFailedEvent ( Throwable t ) { synchronized ( terminated ) { if ( terminated . get ( ) ) { return null ; } if ( setState ( State . FAILED ) ) { installer . removeWabFromEligibleForCollisionResolution ( this ) ; installer . attemptRedeployOfPreviouslyCollidedContextPath ( this . wabContextPath ) ; return crea...
and kicks off the collision resolution process
38,207
Event createFailedEvent ( String collisionContext , long [ ] cIds ) { synchronized ( terminated ) { if ( terminated . get ( ) ) { return null ; } if ( setState ( State . FAILED ) ) return createEvent ( State . FAILED , null , collisionContext , cIds ) ; } return null ; }
as it s used only to report collision failures = )
38,208
public WAB addingBundle ( Bundle bundle , BundleEvent event ) { if ( bundle . getBundleId ( ) == wabBundleId ) { synchronized ( terminated ) { if ( terminated . get ( ) ) { installer . wabLifecycleDebug ( "SubTracker unable to add bundle, as has been terminated." , this , bundle . getBundleId ( ) ) ; return null ; } in...
so we don t want that in the trace all the time
38,209
public static String identityToString ( Object o ) { return o == null ? null : o . getClass ( ) . getName ( ) + '@' + Integer . toHexString ( System . identityHashCode ( o ) ) ; }
Returns a string containing a concise human - readable description of the object . The string is the same as the one that would be returned by Object . toString even if the object s class has overriden the toString or hashCode methods . The return value for a null object is null .
38,210
public static final String getThreadId ( ) { String id = threadids . get ( ) ; if ( null == id ) { id = getThreadId ( Thread . currentThread ( ) ) ; threadids . set ( id ) ; } return id ; }
Get and return the thread id padded to 8 characters .
38,211
public static final String padHexString ( int num , int width ) { final String zeroPad = "0000000000000000" ; String str = Integer . toHexString ( num ) ; final int length = str . length ( ) ; if ( length >= width ) return str ; StringBuilder buffer = new StringBuilder ( zeroPad . substring ( 0 , width ) ) ; buffer . r...
Returns the provided integer padded to the specified number of characters with zeros .
38,212
public static final String throwableToString ( Throwable t ) { final StringWriter s = new StringWriter ( ) ; final PrintWriter p = new PrintWriter ( s ) ; if ( t == null ) { p . println ( "none" ) ; } else { printStackTrace ( p , t ) ; } return DataFormatHelper . escape ( s . toString ( ) ) ; }
Returns a string containing the formatted exception stack
38,213
private static final boolean printFieldStackTrace ( PrintWriter p , Throwable t , String className , String fieldName ) { for ( Class < ? > c = t . getClass ( ) ; c != Object . class ; c = c . getSuperclass ( ) ) { if ( c . getName ( ) . equals ( className ) ) { try { Object value = c . getField ( fieldName ) . get ( t...
Find a field value in the class hierarchy of an exception and if the field contains another Throwable then print its stack trace .
38,214
private String createErrorMsg ( JspLineId jspLineId , int errorLineNr ) { StringBuffer compilerOutput = new StringBuffer ( ) ; if ( jspLineId . getSourceLineCount ( ) <= 1 ) { Object [ ] objArray = new Object [ ] { new Integer ( jspLineId . getStartSourceLineNum ( ) ) , jspLineId . getFilePath ( ) } ; if ( jspLineId . ...
name of parent file
38,215
@ SuppressWarnings ( "unchecked" ) public static < T > T getInstanceInitParameter ( ExternalContext context , String name , String deprecatedName , T defaultValue ) { String param = getStringInitParameter ( context , name , deprecatedName ) ; if ( param == null ) { return defaultValue ; } else { try { return ( T ) Clas...
Gets the init parameter value from the specified context and instanciate it . If the parameter was not specified the default value is used instead .
38,216
public static String escapeLDAPFilterTerm ( String term ) { if ( term == null ) return null ; Matcher m = FILTER_CHARS_TO_ESCAPE . matcher ( term ) ; StringBuffer sb = new StringBuffer ( term . length ( ) ) ; while ( m . find ( ) ) { final String replacement = escapeFilterChar ( m . group ( ) . charAt ( 0 ) ) ; m . app...
Escape a term for use in an LDAP filter .
38,217
private static Method getBindingMethod ( UIComponent parent ) { Class [ ] clazzes = parent . getClass ( ) . getInterfaces ( ) ; for ( int i = 0 ; i < clazzes . length ; i ++ ) { Class clazz = clazzes [ i ] ; if ( clazz . getName ( ) . indexOf ( "BindingAware" ) != - 1 ) { try { return parent . getClass ( ) . getMethod ...
This is all a hack to work around a spec - bug which will be fixed in JSF2 . 0
38,218
public void setObjectClasses ( List < String > objectClasses ) { int size = objectClasses . size ( ) ; iObjectClasses = new ArrayList < String > ( objectClasses . size ( ) ) ; for ( int i = 0 ; i < size ; i ++ ) { String objectClass = objectClasses . get ( i ) . toLowerCase ( ) ; if ( ! iObjectClasses . contains ( obje...
Sets a list of defining object classes for this entity type . The object classes will be stored in lower case form for comparison .
38,219
public void setObjectClassesForCreate ( List < String > objectClasses ) { if ( iRDNObjectClass != null && iRDNObjectClass . length > 1 ) { iObjectClassAttrs = new Attribute [ iRDNObjectClass . length ] ; for ( int i = 0 ; i < iRDNObjectClass . length ; i ++ ) { iObjectClassAttrs [ i ] = new BasicAttribute ( LdapConstan...
Sets the object classes attribute for creating .
38,220
public void setRDNAttributes ( List < Map < String , Object > > rdnAttrList ) throws MissingInitPropertyException { int size = rdnAttrList . size ( ) ; if ( size > 0 ) { iRDNAttrs = new String [ size ] [ ] ; iRDNObjectClass = new String [ size ] [ ] ; if ( size == 1 ) { Map < String , Object > rdnAttr = rdnAttrList . g...
Sets the RDN attribute types of this member type . RDN attribute types will be converted to lower case .
38,221
public Attribute getObjectClassAttribute ( String dn ) { if ( iObjectClassAttrs . length == 1 || dn == null ) { return iObjectClassAttrs [ 0 ] ; } else { String [ ] rdns = LdapHelper . getRDNAttributes ( dn ) ; for ( int i = 0 ; i < iRDNAttrs . length ; i ++ ) { String [ ] attrs = iRDNAttrs [ i ] ; for ( int j = 0 ; j ...
Gets the LDAP object class attribute that contains all object classes needed to create the member on LDAP server .
38,222
public SimpleEntry next ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "next" , this ) ; SibTr . exit ( tc , "next" , this . next ) ; } return this . next ; }
Return the next entry in the list
38,223
public void remove ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "remove" , this ) ; if ( previous != null ) previous . next = next ; else list . first = next ; if ( next != null ) next . previous = previous ; else list . last = previous ; previous = null ; next =...
Remove this entry from the list
38,224
void rank ( MetatypeOcd ocd , List < String > rankedSuffixes ) { List < String > childAliasSuffixes = new LinkedList < String > ( ) ; for ( String suffix : rankedSuffixes ) if ( ! childAliasSuffixes . contains ( suffix ) ) { MetatypeOcd collision = unavailableSuffixes . put ( suffix , ocd ) ; if ( collision == null ) c...
Specifies rankings for child alias suffixes .
38,225
void reserve ( String suffix , MetatypeOcd ocd ) { MetatypeOcd previous = unavailableSuffixes . put ( suffix , ocd ) ; if ( previous != null ) throw new IllegalArgumentException ( "aliasSuffix: " + suffix ) ; }
Reserve a child alias suffix so that no one else can claim it . This method should only be used when an aliasSuffix override is specified in wlp - ra . xml .
38,226
private CapabilityMatchingResult matchCapability ( Collection < ? extends ProvisioningFeatureDefinition > features ) { String capabilityString = esaResource . getProvisionCapability ( ) ; if ( capabilityString == null ) { CapabilityMatchingResult result = new CapabilityMatchingResult ( ) ; result . capabilitySatisfied ...
Attempt to match the ProvisionCapability requirements against the given list of features
38,227
public String getAssetURL ( String id ) { String url = getRepositoryUrl ( ) + "/assets/" + id + "?" ; if ( getUserId ( ) != null ) { url += "userId=" + getUserId ( ) ; } if ( getUserId ( ) != null && getPassword ( ) != null ) { url += "&password=" + getPassword ( ) ; } if ( getApiKey ( ) != null ) { url += "&apiKey=" +...
Returns a URL which represent the URL that can be used to view the asset in Massive . This is more for testing purposes the assets can be access programatically via various methods on this class .
38,228
public String getTaskUsage ( ExeAction task ) { StringBuilder taskUsage = new StringBuilder ( NL ) ; taskUsage . append ( getHelpPart ( "global.usage" ) ) ; taskUsage . append ( NL ) ; taskUsage . append ( '\t' ) ; taskUsage . append ( COMMAND ) ; taskUsage . append ( ' ' ) ; taskUsage . append ( task ) ; taskUsage . a...
Constructs a string to represent the usage for a particular task .
38,229
private int getQueueIndex ( Object [ ] queue , java . util . concurrent . atomic . AtomicInteger counter , boolean increment ) { if ( queue . length == 1 ) { return 0 ; } else if ( increment ) { int i = counter . incrementAndGet ( ) ; if ( i > MAX_COUNTER ) { if ( counter . compareAndSet ( i , 0 ) ) { System . out . pr...
has waited .
38,230
public void put ( Object x ) throws InterruptedException { if ( x == null ) { throw new IllegalArgumentException ( ) ; } boolean ret = false ; while ( true ) { synchronized ( lock ) { if ( numberOfUsedSlots . get ( ) < buffer . length ) { insert ( x ) ; numberOfUsedSlots . getAndIncrement ( ) ; ret = true ; } } if ( re...
Puts an object into the buffer . If the buffer is full the call will block indefinitely until space is freed up .
38,231
public void setTarget ( String target ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) { SibTr . debug ( this , TRACE , "setTarget" , target ) ; } _target = target ; }
Set the target property .
38,232
public void setTargetType ( String targetType ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) { SibTr . debug ( this , TRACE , "setTargetType" , targetType ) ; } _targetType = targetType ; }
Set the target type property .
38,233
public void setMaxSequentialMessageFailure ( final String maxSequentialMessageFailure ) { _maxSequentialMessageFailure = ( maxSequentialMessageFailure == null ? null : Integer . valueOf ( maxSequentialMessageFailure ) ) ; }
Set the MaxSequentialMessageFailure property
38,234
public void setAutoStopSequentialMessageFailure ( final String autoStopSequentialMessageFailure ) { _autoStopSequentialMessageFailure = ( autoStopSequentialMessageFailure == null ? null : Integer . valueOf ( autoStopSequentialMessageFailure ) ) ; }
Set the AutoStopSequentialMessageFailure property
38,235
public static UOWScopeCallback createUserTransactionCallback ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "createUserTransactionCallback" ) ; if ( userTranCallback == null ) { userTranCallback = new LTCUOWCallback ( UOW_TYPE_TRANSACTION ) ; } if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "createUserTransact...
may be different in derived classes
38,236
public static X509Name getInstance ( ASN1TaggedObject obj , boolean explicit ) { return getInstance ( ASN1Sequence . getInstance ( obj , explicit ) ) ; }
Return a X509Name based on the passed in tagged object .
38,237
public Vector getOIDs ( ) { Vector v = new Vector ( ) ; for ( int i = 0 ; i != ordering . size ( ) ; i ++ ) { v . addElement ( ordering . elementAt ( i ) ) ; } return v ; }
return a vector of the oids in the name in the order they were found .
38,238
public Vector getValues ( ) { Vector v = new Vector ( ) ; for ( int i = 0 ; i != values . size ( ) ; i ++ ) { v . addElement ( values . elementAt ( i ) ) ; } return v ; }
return a vector of the values found in the name in the order they were found .
38,239
public static ConfigID fromProperty ( String property ) { String [ ] parents = property . split ( "//" ) ; ConfigID id = null ; for ( String parentString : parents ) { id = constructId ( id , parentString ) ; } return id ; }
Translate config . id back into an ConfigID object
38,240
public Conversation connect ( InetSocketAddress remoteHost , ConversationReceiveListener arl , String chainName ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "connect" , new Object [ ] { remoteHost , arl , chainName } ) ; if ( initi...
Implementation of the connect method provided by our abstract parent . Attempts to establish a conversation to the specified remote host using the appropriate chain . This may involve creating a new connection or reusing an existing one . The harder part is doing this in such a way as to avoid blocking all calls while ...
38,241
public static void initialise ( ) throws SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "initialise" ) ; initialisationFailed = true ; Framework framework = Framework . getInstance ( ) ; if ( framework != null ) { tracker = new OutboundConnectionTracke...
Initialises the Client Connection Manager .
38,242
private void destroy ( ) { final boolean bTrace = TraceComponent . isAnyTracingEnabled ( ) ; if ( bTrace && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Session being destroyed; " + this ) ; } for ( String key : this . attributes . keySet ( ) ) { Object value = this . attributes . get ( key ) ; HttpSessionBindingEven...
Once a session has been invalidated this will perform final cleanup and notifying any listeners .
38,243
private void cleanup ( ) { final String methodName = "cleanup(): " ; try { final Bundle b = bundle . getAndSet ( null ) ; if ( b != null ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + "Uninstalling bundle location: " + b . getLocation ( ) + ", bundle id: " + b . getBundleId ( ) ) ; } SecurityManage...
Cleans up the TCCL instance . Once called this TCCL is effectively disabled . It s associated gateway bundle will have been removed .
38,244
int decrementRefCount ( ) { final String methodName = "decrementRefCount(): " ; final int count = refCount . decrementAndGet ( ) ; if ( count < 0 ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + " refCount < 0 - too many calls to destroy/cleaup" , new Throw...
The ClassLoadingService implementation should call this method when it s destroyThreadContextClassLoader method is called . Each call to destroyTCCL should decrement this ref counter . When there are no more references to this TCCL it will be cleaned up which effectively invalidates it .
38,245
private static PersistenceContext newPersistenceContext ( final String fJndiName , final String fUnitName , final int fCtxType , final List < Property > fCtxProperties ) { return new PersistenceContext ( ) { public Class < ? extends Annotation > annotationType ( ) { return PersistenceContext . class ; } public String n...
This transient PersistenceContext annotation class has no default value . i . e . null is a valid value for some fields .
38,246
private void processConnectionInfo ( CommsByteBuffer buffer , Conversation conversation ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "processConnectionInfo" , new Object [ ] { buffer , conversation } ) ; ClientConversationState convState = ( ClientConversati...
This method will process the connection information received from our peer . At the moment this consists of the connection object ID required at the server the name of the messaging engine and the ME Uuid .
38,247
private void processSchema ( CommsByteBuffer buffer , Conversation conversation ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "processSchema" , new Object [ ] { buffer , conversation } ) ; ClientConversationState convState = ( ClientConversationState ) conversation ...
This method will process a schema received from our peer s MFP compoennt . At the moment this consists of contacting MFP here on the client and giving it the schema . Schemas are received when the ME is about to send us a message and realises that we don t have the necessary schema to decode it . A High priority messag...
38,248
private void processSyncMessageChunk ( CommsByteBuffer buffer , Conversation conversation , boolean connectionMessage ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "processSyncMessageChunk" , new Object [ ] { buffer , conversation , connectionMessage } ) ; Cl...
Processes a chunk received from a synchronous message .
38,249
public BeanO getBean ( ContainerTx tx , BeanId id ) { return id . getActivationStrategy ( ) . atGet ( tx , id ) ; }
Return bean from cache for given transaction bean id . Return null if no entry in cache .
38,250
public void commitBean ( ContainerTx tx , BeanO bean ) { bean . getActivationStrategy ( ) . atCommit ( tx , bean ) ; }
Perform commit - time processing for the specified transaction and bean . This method should be called for each bean which was participating in a transaction which was successfully committed .
38,251
public void unitOfWorkEnd ( ContainerAS as , BeanO bean ) { bean . getActivationStrategy ( ) . atUnitOfWorkEnd ( as , bean ) ; }
LIDB441 . 5 - added
38,252
public void rollbackBean ( ContainerTx tx , BeanO bean ) { bean . getActivationStrategy ( ) . atRollback ( tx , bean ) ; }
Perform rollback - time processing for the specified transaction and bean . This method should be called for each bean which was participating in a transaction which was rolled back .
38,253
public final void enlistBean ( ContainerTx tx , BeanO bean ) { bean . getActivationStrategy ( ) . atEnlist ( tx , bean ) ; }
Perform actions required when a bean is enlisted in a transaction at some point in time other than at activation . Used only for beans using TX_BEAN_MANAGED .
38,254
public void terminate ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "terminate" ) ; statefulBeanReaper . cancel ( ) ; statefulBeanReaper . finalSweep ( passivator ) ; beanCache . terminate ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( )...
Enable cleanup of passivated beans kind of a hack required because all the bean s homes have already been cleaned up at this point
38,255
public void uninstallBean ( J2EEName homeName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "uninstallBean " + homeName ) ; BeanO cacheMember ; J2EEName cacheHomeName ; Iterator < ? > statefulBeans ; int numEnumerated = 0 , numRemoved = 0 , numTimedout = 0 ; Enumeratio...
Uninstall a bean identified by the J2EEName . This is a partial solution to the general problem of how we can quiesce beans . Uninstalling a bean requires us to enumerate the whole bean cache We attempt to find beans which have the same J2EEName as the bean we are uninstalling . We then fire the uninstall event on the ...
38,256
synchronized long calculateNextExpiration ( ) { boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "calculateNextExpiration: " + this ) ; ivLastExpiration = ivExpiration ; if ( ivParsedScheduleExpression != null ) { ivExpiration = Math . max ( 0 ...
Calculate the next time that the timer should fire .
38,257
public static void removeTimersByJ2EEName ( J2EEName j2eeName ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "removeTimersByJ2EEName: " + j2eeName ) ; Collection < TimerNpImpl > timersToRemove = null ; synchronized ( svActiveTimers ...
Removes all timers associated with the specified application or module .
38,258
public void statisticCreated ( SPIStatistic s ) { if ( com . ibm . websphere . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . logp ( Level . FINE , CLASS_NAME , "statisticCreated" , "Servlet statistic created with id=" + s . getId ( ) ) ; if ( s . getId ( ) == LOADED_S...
use ID defined in template to identify a statistic
38,259
public EJBModuleMetaDataImpl createEJBModuleMetaDataImpl ( EJBApplicationMetaData ejbAMD , ModuleInitData mid , SfFailoverCache statefulFailoverCache , EJSContainer container ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "createEJB...
Create the EJB Container s internal module metadata object and fill in the data from the metadata framework s generic ModuleDataObject . This occurs at application start time .
38,260
public void processDeferredBMD ( BeanMetaData bmd ) throws EJBConfigurationException , ContainerException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "processDeferredBMD: " + bmd . j2eeName ) ; if ( bmd . ivInitData . ivTimerMethod...
Perform metadata processing for a bean that is being deferred .
38,261
private void initializeLifecycleInterceptorMethodMD ( Method [ ] ejbMethods , List < ContainerTransaction > transactionList , List < ActivitySessionMethod > activitySessionList , BeanMetaData bmd ) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && ...
Initialize lifecycleInterceptorMethodInfos and lifecycleInterceptorMethodNames fields in the specified BeanMetaData .
38,262
@ SuppressWarnings ( "deprecation" ) protected Throwable getNestedException ( Throwable t ) { Throwable root = t ; for ( ; ; ) { if ( root instanceof RemoteException ) { RemoteException re = ( RemoteException ) root ; if ( re . detail == null ) break ; root = re . detail ; } else if ( root instanceof NamingException ) ...
d494984 eliminate assignment to parameter t .
38,263
private void processSingletonConcurrencyManagementType ( BeanMetaData bmd ) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "processSingletonConcurrencyManagementType" ) ; } ConcurrencyManagementType ...
F743 - 1752CodRev rewrote to do error checking and validation .
38,264
private void initializeManagedObjectFactoryOrConstructor ( BeanMetaData bmd ) throws EJBConfigurationException { if ( bmd . isManagedBean ( ) ) { bmd . ivEnterpriseBeanFactory = getManagedBeanManagedObjectFactory ( bmd , bmd . enterpriseBeanClass ) ; if ( bmd . ivEnterpriseBeanFactory != null && bmd . ivEnterpriseBeanF...
Create the appropriate ManagedObjectFactory for the bean type or obtain the constructor if a ManagedObjectFactory will not be used .
38,265
private void initializeEntityConstructor ( BeanMetaData bmd ) throws EJBConfigurationException { try { bmd . ivEnterpriseBeanClassConstructor = bmd . enterpriseBeanClass . getConstructor ( ( Class < ? > [ ] ) null ) ; } catch ( NoSuchMethodException e ) { Tr . error ( tc , "JIT_NO_DEFAULT_CTOR_CNTR5007E" , new Object [...
Obtain the constructor for the entity bean concrete class .
38,266
protected < T > ManagedObjectFactory < T > getManagedBeanManagedObjectFactory ( BeanMetaData bmd , Class < T > klass ) throws EJBConfigurationException { ManagedObjectFactory < T > factory = null ; ManagedObjectService managedObjectService = getManagedObjectService ( ) ; if ( managedObjectService != null ) { try { fact...
Gets a managed object factory for the specified ManagedBean class or null if instances of the class do not need to be managed .
38,267
protected < T > ManagedObjectFactory < T > getInterceptorManagedObjectFactory ( BeanMetaData bmd , Class < T > klass ) throws EJBConfigurationException { ManagedObjectFactory < T > factory = null ; ManagedObjectService managedObjectService = getManagedObjectService ( ) ; if ( managedObjectService != null ) { try { fact...
Gets a managed object factory for the specified interceptor class or null if instances of the class do not need to be managed .
38,268
protected < T > ManagedObjectFactory < T > getEJBManagedObjectFactory ( BeanMetaData bmd , Class < T > klass ) throws EJBConfigurationException { ManagedObjectFactory < T > factory = null ; ManagedObjectService managedObjectService = getManagedObjectService ( ) ; if ( managedObjectService != null ) { try { factory = ma...
Gets a managed object factory for the specified EJB class or null if instances of the class do not need to be managed .
38,269
private ClassLoader getWrapperProxyClassLoader ( BeanMetaData bmd , Class < ? > intf ) throws EJBConfigurationException { ClassLoader loader = intf . getClassLoader ( ) ; if ( loader != null ) { try { loader . loadClass ( BusinessLocalWrapperProxy . class . getName ( ) ) ; return loader ; } catch ( ClassNotFoundExcepti...
Returns a class loader that can be used to define a proxy for the specified interface .
38,270
private Constructor < ? > getWrapperProxyConstructor ( BeanMetaData bmd , String proxyClassName , Class < ? > interfaceClass , Method [ ] methods ) throws EJBConfigurationException , ClassNotFoundException { ClassLoader proxyClassLoader = getWrapperProxyClassLoader ( bmd , interfaceClass ) ; Class < ? > [ ] interfaces ...
Defines a wrapper proxy class and obtains its constructor that accepts a WrapperProxyStte .
38,271
private static boolean hasEmptyThrowsClause ( Method method ) { for ( Class < ? > klass : method . getExceptionTypes ( ) ) { if ( ! RuntimeException . class . isAssignableFrom ( klass ) && ! Error . class . isAssignableFrom ( klass ) ) { return false ; } } return true ; }
Returns true if the specified method has an empty throws clause .
38,272
private void dealWithUnsatisifedXMLTimers ( Map < String , List < com . ibm . ws . javaee . dd . ejb . Timer > > timers1ParmByMethodName , Map < String , List < com . ibm . ws . javaee . dd . ejb . Timer > > timers0ParmByMethodName , BeanMetaData bmd ) throws EJBConfigurationException { String oneMethodInError = null ;...
Verifies that every timer defined in xml was successfully associated with a Method .
38,273
private boolean hasTimeoutCallbackParameters ( MethodMap . MethodInfo methodInfo ) { int numParams = methodInfo . getNumParameters ( ) ; return numParams == 0 || ( numParams == 1 && methodInfo . getParameterType ( 0 ) == Timer . class ) ; }
Returns true if the specified method has the proper parameter types for a timeout callback method .
38,274
private void addTimerToCorrectMap ( Map < String , List < com . ibm . ws . javaee . dd . ejb . Timer > > timers1ParmByMethodName , Map < String , List < com . ibm . ws . javaee . dd . ejb . Timer > > timers0ParmByMethodName , Map < String , List < com . ibm . ws . javaee . dd . ejb . Timer > > timersUnspecifiedParmByMe...
Sticks a timer defined in xml into the correct list based on the number of parameters specified in xml for the timer .
38,275
private EJBMethodInfoImpl findMethodInEJBMethodInfoArray ( EJBMethodInfoImpl [ ] methodInfos , final Method targetMethod ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "findMethodInEJBMethodInfoArray for method \"" + targetMethod ...
d494984 . 1 - added entire method
38,276
protected void processReferenceContext ( BeanMetaData bmd ) throws InjectionException , EJBConfigurationException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "ensureReferenceDataIsProcessed" ) ; ReferenceContext refContext = bmd . ...
Ensure that reference data is processed and that the resulting output data structures are stuffed in BeanMetaData .
38,277
private void removeTemporaryMethodData ( BeanMetaData bmd ) { bmd . methodsExposedOnLocalHomeInterface = null ; bmd . methodsExposedOnLocalInterface = null ; bmd . methodsExposedOnRemoteHomeInterface = null ; bmd . methodsExposedOnRemoteInterface = null ; bmd . allPublicMethodsOnBean = null ; bmd . methodsToMethodInfos...
Removes temporary lists of data from BMD when they are no longer needed .
38,278
public SIBusMessage next ( ) throws SISessionUnavailableException , SISessionDroppedException , SIResourceException , SIConnectionLostException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && CoreSPIBrowserSession . tc . isEntryEnabled ( ) ) SibTr . entry ( CoreSPIBrowserSession . tc , "next" , th...
Gets the next item from the BrowseCursor .
38,279
public void close ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && CoreSPIBrowserSession . tc . isEntryEnabled ( ) ) SibTr . entry ( CoreSPIBrowserSession . tc , "close" , this ) ; synchronized ( this ) { if ( ! _closed ) { _conn . removeBrowserSession ( this ) ; _close ( ) ; } } if ( TraceComponent . isAnyTracin...
Close this BrowserSession ... Dereference from the parent connection and set the closed flag to true .
38,280
void checkNotClosed ( ) throws SISessionUnavailableException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkNotClosed" ) ; synchronized ( this ) { if ( _closed ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "che...
Check if the session is closed . If the closed flag is set to true throw an exception .
38,281
public DestinationHandler getNamedDestination ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getNamedDestination" ) ; SibTr . exit ( tc , "getNamedDestination" , _dest ) ; } return _dest ; }
Returns the destination that the session was created against
38,282
public String getUserAgent ( FacesContext facesContext ) { if ( userAgent == null ) { synchronized ( this ) { if ( userAgent == null ) { Map < String , String [ ] > requestHeaders = facesContext . getExternalContext ( ) . getRequestHeaderValuesMap ( ) ; if ( requestHeaders != null && requestHeaders . containsKey ( "Use...
This information will get stored as it cannot change during the session anyway .
38,283
public static BigInteger decode ( String s ) { byte [ ] bytes = Base64 . decodeBase64 ( s ) ; BigInteger bi = new BigInteger ( 1 , bytes ) ; return bi ; }
This is in use by FAT only at the writing time
38,284
public static synchronized void initialise ( ) { if ( _instance == null ) { if ( _instance == null ) { if ( tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "We are NOT in Server mode" ) ; _instance = ClientCommsDiagnosticModule . getInstance ( ) ; } _instance . register ( packageList ) ; } }
Initialises the diagnostic module .
38,285
public void ffdcDumpDefault ( Throwable t , IncidentStream is , Object callerThis , Object [ ] objs , String sourceId ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "ffdcDumpDefault" , new Object [ ] { t , is , callerThis , objs , sourceId } ) ; super . ffdcDumpDefault ( t , is , callerThis , objs , sou...
Called when an FFDC is generated and the stack matches one of our packages .
38,286
boolean setObserver ( Observer observer ) { boolean success ; Observer oldObserver ; synchronized ( this ) { oldObserver = ivObserver ; success = oldObserver != null || ! isDone ( ) ; ivObserver = success ? observer : null ; } if ( oldObserver != null ) { oldObserver . update ( null , observer ) ; } return success ; }
Sets the current observer and updates the pending one . If the result is already available the existing observer if any will be updated and passed the new observer as data . Otherwise the observer will be updated when the result is available and will be passed null as data .
38,287
private void cleanup ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "cleanup" ) ; synchronized ( ivRemoteAsyncResultReaper ) { if ( ivAddedToReaper ) { this . ivRemoteAsyncResultReaper . remove ( this ) ; } else { unexportObject (...
Clean up all resources associated with this object .
38,288
RemoteAsyncResult exportObject ( ) throws RemoteException { ivObjectID = ivRemoteRuntime . activateAsyncResult ( ( Servant ) createTie ( ) ) ; return ivRemoteRuntime . getAsyncResultReference ( ivObjectID ) ; }
Export this object so that it is remotely accessible .
38,289
protected void unexportObject ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "unexportObject: " + this ) ; if ( ivObjectID != null ) { try { ivRemoteRuntime . deactivateAsyncResult ( ivObjectID ) ; } catch ( Throwable e ) { if ( i...
Unexport this object so that it is not remotely accessible .
38,290
public BeanId find ( EJSHome home , Serializable pkey , boolean isHome ) { int hashValue = BeanId . computeHashValue ( home . j2eeName , pkey , isHome ) ; BeanId [ ] buckets = this . ivBuckets ; BeanId element = buckets [ ( hashValue & 0x7FFFFFFF ) % buckets . length ] ; if ( element == null || ! element . equals ( hom...
d156807 . 3 Begins
38,291
protected boolean needsToBeRefreshed ( DefaultFacelet facelet ) { if ( _refreshPeriod == NO_CACHE_DELAY ) { return true ; } if ( _refreshPeriod == INFINITE_DELAY ) { return false ; } long target = facelet . getCreateTime ( ) + _refreshPeriod ; if ( System . currentTimeMillis ( ) > target ) { URLConnection conn = null ;...
Template method for determining if the Facelet needs to be refreshed .
38,292
int getState ( ) { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "getState" ) ; int state ; if ( ! prefixDone ) { Pattern . Clause prefix = pattern . getPrefix ( ) ; if ( prefix == null || next >= prefix . items . length ) { Pattern . Clause suffix = pattern . getSuffix ( ) ; state = suffix == null ? FINA...
Get the state of this Pattern ( which item is next to process
38,293
void advance ( ) { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "advance" ) ; if ( ! prefixDone ) { Pattern . Clause prefix = pattern . getPrefix ( ) ; if ( prefix == null || next >= prefix . items . length ) { Pattern . Clause suffix = pattern . getSuffix ( ) ; if ( suffix != null && suffix != prefix ) ...
Advance the state of this pattern
38,294
char [ ] getChars ( ) { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "getChars" ) ; char [ ] ans ; if ( prefixDone ) ans = ( char [ ] ) pattern . getSuffix ( ) . items [ next -- ] ; else ans = ( char [ ] ) pattern . getPrefix ( ) . items [ next ++ ] ; if ( tc . isEntryEnabled ( ) ) tc . exit ( this , ccl...
Get the characters and advance ( assumes the pattern is in one of the CHARS states
38,295
public boolean matchMidClauses ( char [ ] chars , int start , int length ) { return pattern . matchMiddle ( chars , start , start + length ) ; }
Test whether the underlying pattern s mid clauses match a set of characters .
38,296
public String extractPropertyFromURI ( String propName , String uri ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "extractPropertyFromURI" , new Object [ ] { propName , uri } ) ; String result = null ; if ( uri != null ) { uri = uri . trim ( ) ; if ( ! uri . ...
Extract the value of the named property from URI . Find the named property in the name value pairs of the uri and return the value or null if the property is not present .
38,297
private String [ ] splitOnNonEscapedChar ( String inputStr , char splitChar , int expectedPartCount ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "splitOnNonEscapedChar" , new Object [ ] { inputStr , splitChar , expectedPartCount } ) ; String [ ] parts = null...
Split the specified string into the requested number of pieces using the splitter character provided . This method is careful to only split on non - escaped instances of the splitter character .
38,298
private String unescape ( String input , char c ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "unescape" , new Object [ ] { input , c } ) ; String result = input ; if ( input . indexOf ( c ) != - 1 ) { int startValue = 0 ; StringBuffer temp = new StringBuffer...
Remove \ characters from input String when they precede specified character .
38,299
private String unescapeBackslash ( String input ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "unescapeBackslash" , input ) ; String result = input ; if ( input . indexOf ( "\\" ) != - 1 ) { int startValue = 0 ; StringBuffer tmp = new Stri...
Convert escaped backslash to single backslash . This method de - escapes double backslashes whilst at the same time checking that there are no single backslahes in the input string .