code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
protected synchronized boolean isBackgroundInvalidationInProgress() {
boolean cleanupThreadRunning = false;
if (this.cod.diskCleanupThread != null) {
synchronized (cod.diskCleanupThread.dcMonitor) {
cleanupThreadRunning = this.cod.diskCleanupThread.currentThread != null;
... | java |
protected synchronized boolean isLoopOnce() {
final String methodName = "isLoopOnce()";
if (loopOnce) {
traceDebug(methodName, "cacheName=" + this.cod.cacheName + " isLoopOnce=" + loopOnce + " explicitBuffer=" + explicitBuffer.size()
+ " scanBuffer=" + this.scanBuffer.siz... | java |
protected synchronized void setStopping(boolean stopping) {
final String methodName = "setStopping()";
this.stopping = stopping;
traceDebug(methodName, "cacheName=" + this.cod.cacheName + " stopping=" + this.stopping);
} | java |
@Override
public void updateProperties(Dictionary<String, Object> properties) throws IOException {
lock.lock();
try {
doUpdateProperties(properties);
} finally {
lock.unlock();
}
} | java |
@Override
public void updateCache(Dictionary<String, Object> properties, Set<ConfigID> references, Set<String> newUniques) throws IOException {
lock.lock();
try {
removeReferences();
setProperties(properties);
this.references = references;
this.unique... | java |
private void setProperties(Dictionary<String, ?> d) {
if (d == null) {
this.properties = null;
return;
}
ConfigurationDictionary newDictionary = new ConfigurationDictionary();
Enumeration<String> keys = d.keys();
while (keys.hasMoreElements()) {
... | java |
@SuppressWarnings("unchecked")
public static Object proprietaryEvaluate(final String expression,
final Class expectedType, final PageContext pageContext,
final ProtectedFunctionMapper functionMap, final boolean escape)
throws ELException {
Object retValue;
ExpressionFactory exprFactorySetInPageContext = (... | java |
public void addListener(InstallEventListener listener, String notificationType) {
if (listener == null || notificationType == null)
return;
if (notificationType.isEmpty())
return;
if (listenersMap == null) {
listenersMap = new HashMap<String, Collection<Instal... | java |
public void removeListener(InstallEventListener listener) {
if (listenersMap != null) {
for (Collection<InstallEventListener> listeners : listenersMap.values()) {
listeners.remove(listener);
}
}
} | java |
public void fireProgressEvent(int state, int progress, String message) throws Exception {
if (listenersMap != null) {
Collection<InstallEventListener> listeners = listenersMap.get(InstallConstants.EVENT_TYPE_PROGRESS);
if (listeners != null) {
for (InstallEventListener li... | java |
public void putToFront(QueueData queueData, short msgBatch)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putToFront",
new Object[]{queueData, msgBatch});
_put(queueData, msgBatch, false);
if (TraceComponent.is... | java |
public synchronized JsMessage[] getBatch(int batchSize, short id)
throws SIResourceException, SIConnectionDroppedException, SIConnectionLostException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getBatch", ""+batchSize);
int size;
synchronized(que... | java |
public synchronized void setTrackBytes(boolean trackBytes)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setTrackBytes", trackBytes);
this.trackBytes = trackBytes;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setT... | java |
public void reset()
{
current = null;
_hasWritten = false;
byteBuffersRetrieved = false;
limit = -1;
total = 0;
if (!byteBuffersRetrieved)
{
ListIterator<WsByteBuffer> it = bbList.listIterator();
while (it.hasNext())
{
WsByteBuffer next = it.next();
next.r... | java |
public void write(byte[] buf, int offset, int len) throws IOException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
{ // 306998.15
Tr.debug(tc, "write len --> " + len + ", limit->" + limit);
}
if (len < 0)
{
if (tc.isErrorEnabled())
Tr.error(tc, "Illegal.Ar... | java |
@Override
public void doWork(
Work work,
long startTimeout,
ExecutionContext execContext,
WorkListener workListener) throws WorkException {
try {
beforeRunCheck(work, workListener, startTimeout);
... | java |
@Override
public void scheduleWork(
Work work,
long startTimeout,
ExecutionContext execContext,
WorkListener workListener) throws WorkException {
try {
beforeRunCheck(work, workLi... | java |
@Trivial
private void beforeRunCheck(
Work work,
WorkListener workListener,
long startTimeout) throws WorkRejectedException {
WorkRejectedException wrex = null;
if (work == null) {
wrex = new... | java |
public void stop() {
final boolean trace = TraceComponent.isAnyTracingEnabled();
// Stop accepting work
stopped = true;
// Cancel futures for submitted work
for (Future<Void> future = futures.poll(); future != null; future = futures.poll())
if (!future.isDone() && f... | java |
public void close() {
if (tc.isEntryEnabled())
SibTr.entry(this, tc, "close");
// begin F177053
ChannelFramework framework = ChannelFrameworkFactory.getChannelFramework(); // F196678.10
try {
framework.stopChain(chainInbound, CHAIN_STOP_TIME);
} catch (Ch... | java |
public AcceptListener getAcceptListener() {
if (tc.isEntryEnabled())
SibTr.entry(this, tc, "getAcceptListener");
if (tc.isEntryEnabled())
SibTr.exit(this, tc, "getAcceptListener", acceptListener);
return acceptListener;
} | java |
public int getPortNumber() {
if (tc.isEntryEnabled())
SibTr.entry(this, tc, "getPortNumber");
if (tc.isEntryEnabled())
SibTr.exit(this, tc, "getPortNumber", "" + portNumber);
return portNumber;
} | java |
public static boolean containsRoutingContext(RESTRequest request) {
if (request.getHeader(RESTHandlerContainer.COLLECTIVE_HOST_NAMES) != null) {
return true;
}
//No routing header found, so check query strings
return getQueryParameterValue(request, RESTHandlerContainer.COLLE... | java |
private PersistenceServiceUnit createPsu(int jobInstanceVersion, int jobExecutionVersion) throws Exception {
return databaseStore.createPersistenceServiceUnit(getJobInstanceEntityClass(jobInstanceVersion).getClassLoader(),
getJobExecutionEntityClass(jobE... | java |
public JobExecution updateJobExecutionAndInstanceFinalStatus(PersistenceServiceUnit psu,
final long jobExecutionId,
final BatchStatus finalBatchStatus,
... | java |
@Override
public List<StepExecution> getStepExecutionsTopLevelFromJobExecutionId(final long jobExecutionId) throws NoSuchJobExecutionException {
final EntityManager em = getPsu().createEntityManager();
try {
List<StepExecution> exec = new TranRequest<List<StepExecution>>(em) {
... | java |
public RemotablePartitionEntity updateRemotablePartitionOnRecovery(PersistenceServiceUnit psu,
final RemotablePartitionEntity partition) {
// TODO Auto-generated method stub
EntityManager em = psu.createEntityManager();
try {... | java |
public <T> void addMessageHandler(Class<T> clazz, Whole<T> handler) {
connLink.addMessageHandler(clazz, handler);
} | java |
public String promptForUser(String arg) {
String user = console.readLine(CommandUtils.getMessage("user.enterText", arg) + " ");
return user;
} | java |
public void end(Xid xid, int flags) throws XAException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(this, tc, "end", new Object[]
{
ivManagedConnection,
AdapterUtil.toString(xid),
... | java |
public void rollback(Xid xid) throws XAException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(this, tc, "rollback", new Object[]
{
ivManagedConnection,
AdapterUtil.toString(xid)
});
... | java |
private static BundleContext getBundleContext(final Bundle bundle) {
if (System.getSecurityManager() == null)
return bundle.getBundleContext();
else
return AccessController.doPrivileged(new PrivilegedAction<BundleContext>() {
@Override
public Bundl... | java |
public static void debugHtml(Writer writer, FacesContext faces, Throwable e) throws IOException
{
debugHtml(writer, faces, faces.getViewRoot(), null, e);
} | java |
public static void debugHtml(Writer writer, FacesContext faces) throws IOException
{
_init(faces);
Date now = new Date();
for (int i = 0; i < debugParts.length; i++)
{
if ("message".equals(debugParts[i]))
{
writer.write(faces.getViewRoot().getV... | java |
private int hashToTable(Long id, Entry[] table) {
int posVal = id.intValue() & Integer.MAX_VALUE;
return (posVal % table.length);
} | java |
private void resize() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "resize", table.length);
Entry[] newTable = new Entry[table.length + (table.length / 2)];
/* We have to walk the entire SchemaSet, rehashing each Entry and putting */
/* it in its new home. A... | java |
public String toVerboseString() {
/* Take a local reference to the table in case a resize happens. */
Entry[] tempTable = table;
StringBuffer buf = new StringBuffer();
/* Include the SchemaSet hashcode just in case we need to distinguish them */
buf.append("SchemaSet ");
buf.append(this.hashC... | java |
private static final String debugId(Object o) {
Long id = (Long)o;
byte[] buf = new byte[8];
ArrayUtil.writeLong(buf, 0, id.longValue());
return HexUtil.toString(buf);
} | java |
@XmlElement(name = "authentication-mechanism-type", required = true)
public void setAuthenticationMechanismType(String authMech) {
AuthenticationMechanismType type = AuthenticationMechanismType.valueOf(authMech);
authenticationMechanismType = type.name();
} | java |
@FFDCIgnore(ClassCastException.class)
void autoBind(WSName subname, Object obj) throws InvalidNameException, NotContextException, NameAlreadyBoundException {
ContextNode target = this, parent = this;
int i = 0;
try {
for (/* int i = 0 */; i < subname.size() - 1; i++) {
... | java |
@Override
protected void onMethodEntry() {
if (enabledListeners.isEmpty())
return;
String probeKey = createKey();
ProbeImpl probe = getProbe(probeKey);
long probeId = probe.getIdentifier();
setProbeInProgress(true);
visitLdcInsn(Long.valueOf(probeId)); /... | java |
static long getBufAddress(ByteBuffer theBuffer) {
/*
* This only works for DIRECT byte buffers. Direct ByteBuffers have a field called "address" which
* holds the physical address of the start of the buffer contents in native memory.
* This method obtains the value of the address fiel... | java |
public AsyncFuture getFutureFromIndex(int theIndex) {
if (theIndex == READ_FUTURE_INDEX || theIndex == SYNC_READ_FUTURE_INDEX) {
return this.readFuture;
}
if (theIndex == WRITE_FUTURE_INDEX || theIndex == SYNC_WRITE_FUTURE_INDEX) {
return this.writeFuture;
}
... | java |
void cancel(AsyncChannelFuture future, Exception reason) throws ClosedChannelException, IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "cancel");
}
if (!isOpen()) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnable... | java |
public void enable(int level) {
if (level >= PmiConstants.LEVEL_HIGH)
sync = true;
else
sync = false;
if (!enabled) {
enabled = true;
reset();
}
} | java |
protected final Bucket<K, V> getBucketForKey(K key) {
int bucket_index = (key.hashCode() & 0x7FFFFFFF) % buckets.length;
Bucket<K, V> thebucket = buckets[bucket_index];
if (thebucket == null) {
synchronized (this) {
thebucket = buckets[bucket_index];
i... | java |
protected void introspect(ObjectName objectName, QueryExp query, PrintWriter writer) {
// Iterate over the mbean servers, query for the beans, introspect
for (MBeanServer mbeanServer : getMBeanServers()) {
for (ObjectName mbean : mbeanServer.queryNames(objectName, query)) {
i... | java |
String getFormattedArray(Object attribute, String indent) {
int arrayLength = Array.getLength(attribute);
if (arrayLength == 0) {
return "[]";
}
Class<?> componentType = attribute.getClass().getComponentType();
// For the 8 primitive types, a cast is necessary when ... | java |
String getFormattedCompositeData(CompositeData cd, String indent) {
StringBuilder sb = new StringBuilder();
indent += INDENT;
CompositeType type = cd.getCompositeType();
for (String key : type.keySet()) {
sb.append("\n").append(indent);
sb.append(key).append(": ")... | java |
@SuppressWarnings("unchecked")
String getFormattedTabularData(TabularData td, String indent) {
StringBuilder sb = new StringBuilder();
indent += INDENT;
sb.append("{");
Collection<CompositeData> values = (Collection<CompositeData>) td.values();
int valuesRemaining = values.s... | java |
@Override
public void handle(Callback[] callbacks) throws IOException,
UnsupportedCallbackException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "handle");
}
if (callbacks == null || callbacks.length == 0) {
if ... | java |
private void arrangeCallbacks(Callback[] callbacks) {
if (callbacks[0] instanceof CallerPrincipalCallback)
return;
int length = callbacks.length;
for (int i = 0; i < length; i++) {
if (callbacks[i] instanceof CallerPrincipalCallback) {
Callback callback =... | java |
public final void makeEmptyAndClean()
{
// if (tc.isEntryEnabled())
// SibTr.entry(tc, "makeEmptyAndClean");
makeEmpty();
for (int i=0;i<m_array.length;++i) m_array[i]=null;
// if (tc.isEntryEnabled())
// SibTr.entry(tc, "makeEmptyAndClean");
} | java |
public final int size()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "size");
int result = (m_tail >= m_head) ? (m_tail - m_head) : (m_array.length - m_head + m_tail);
if (tc.isEntryEnabled())
SibTr.exit(tc, "size", new Integer(result));
return result;
} | java |
public final void enqueue(Object obj)
{
// if (tc.isEntryEnabled())
// SibTr.entry(tc, "enqueue", obj);
// m_array has at least one position in it that is free.
m_array[m_tail++] = obj;
if (m_tail == m_array.length)
m_tail = 0;
if (m_head == m_tail)
expand_array();
// if (tc.isE... | java |
public final Object dequeue()
throws NoSuchElementException
{
// if (tc.isEntryEnabled())
// SibTr.entry(tc, "dequeue");
if (m_head == m_tail)
throw new NoSuchElementException();
Object obj = m_array[m_head];
m_array[m_head++] = null;
if (m_head == m_array.length)
m_head = 0;
... | java |
private final void expand_array()
{
// if (tc.isEntryEnabled())
// SibTr.entry(tc, "expand_array");
int length = m_array.length;
Object[] m_new = new Object[length*2];
System.arraycopy(m_array, m_head, m_new, m_head, length-m_head);
System.arraycopy(m_array, 0, m_new, length, m_tail);
m_t... | java |
@Override
public LinkedHashMap<String, Object> getConfigDump(String aLocalId, boolean aRegisteredOnly) { // 327843 removed unused parameter
if (TC.isEntryEnabled()) {
Tr.entry(this, TC, "getConfigDump");
}
LinkedHashMap<String, Object> cp = new LinkedHashMap<String, Object>();
... | java |
private Transactional findInterceptorFromStereotype(Annotation[] anns) {
if (tc.isEntryEnabled())
Tr.entry(tc, "findInterceptorFromStereotype", new Object[] { anns, this });
Transactional ret = null;
for (Annotation ann : anns) {
if (tc.isDebugEnabled())
... | java |
private void writeObject(java.io.ObjectOutputStream out) throws IOException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "writeObject : " + this); // d468174
out.writeObject(ivPuRefId);
out.writeObject(ivJ2eeName); // d510184
out.writeO... | java |
protected void registerEmInvocation(UOWCoordinator uowCoord, Synchronization emInvocation)
{
try {
ivAbstractJPAComponent.getEmbeddableWebSphereTransactionManager().registerSynchronization(uowCoord,
... | java |
private void buildDiscriminatorNodes(DiscriminatorNode node) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "buildDiscriminatorNodes: " + node);
}
DiscriminatorNode dn = node;
if (dn == null) {
return;
}
Discrimin... | java |
@Override
public void addDiscriminator(Discriminator d, int weight) throws DiscriminationProcessException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "addDiscriminator: " + d + " weight=" + weight);
}
if (status == STARTED) {
Disc... | java |
private void addDiscriminatorNode(DiscriminatorNode dn) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "addDiscriminatorNode, weight=" + dn.weight);
}
if (discriminators == null) {
// add it as the first node
discriminators =... | java |
private void removeDiscriminatorNode(Discriminator d) throws DiscriminationProcessException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "removeDiscriminatorNode: " + d);
}
if (d == null) {
DiscriminationProcessException e = new Discri... | java |
@Override
public void start() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Started discriminator list " + discAL + "with size" + discAL.size());
}
if (discAL.size() > 1) {
rebuildDiscriminatorList();
discriminationAlgo... | java |
private void rebuildDiscriminatorList() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "rebuildDiscriminatorList");
}
discAL.clear();
DiscriminatorNode dn = discriminators;
discAL.add(dn.disc);
dn = dn.next;
while (dn... | java |
private void addChannel(Channel chan) {
if (channelList == null) {
channelList = new Channel[1];
channelList[0] = chan;
} else {
Channel[] oldList = channelList;
channelList = new Channel[oldList.length + 1];
System.arraycopy(oldList, 0, channe... | java |
@FFDCIgnore({ NamingException.class })
@Sensitive
Object resolveObject(Object o, WSName subname) throws NamingException {
ServiceReference<?> ref = null;
try {
if (o instanceof ContextNode)
return new WSContext(userContext, (ContextNode) o, env);
if (tc.i... | java |
public void send() throws AuditServiceUnavailableException {
AuditService auditService = SecurityUtils.getAuditService();
if (auditService != null) {
auditService.sendEvent(this);
} else {
throw new AuditServiceUnavailableException();
}
} | java |
public static boolean isAuditRequired(String eventType, String outcome) throws AuditServiceUnavailableException {
AuditService auditService = SecurityUtils.getAuditService();
if (auditService != null) {
return auditService.isAuditRequired(eventType, outcome);
} else {
thr... | java |
private void removeEntriesStartingWith(String key) {
synchronized (eventMap) {
Iterator<String> iter = eventMap.keySet().iterator();
while (iter.hasNext()) {
String str = iter.next();
if (str.startsWith(key)) {
iter.remove();
... | java |
public void put(SimpleEntry simpleEntry)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "put", simpleEntry);
simpleEntry.previous = last;
simpleEntry.list = this;
if(last != null)
last.next = simpleEntry;
else
first = simpleEntr... | java |
protected String printList()
{
String output = "[";
SimpleEntry pointer = first;
int counter = 0;
while((pointer != null) && (counter < 3))
{
output += "@"+Integer.toHexString(pointer.hashCode());
pointer = pointer.next;
if(pointer != null)
output += ", ";
cou... | java |
private void initializePort() throws ChannelException {
try {
this.endPoint.initServerSocket();
} catch (IOException ioe) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "TCP Channel: " + getExternalName() + "- Problem occurred wh... | java |
private synchronized void destroyConnLinks() {
// inUse queue is still open to modification
// during this time. Returned iterator is a "weakly consistent"
// I don't believe this has (yet) caused any issues.
for (Queue<TCPConnLink> queue : this.inUse) {
try {
... | java |
protected Object getValue(String propertyName, Type propertyType, boolean optional, String defaultString) {
Object value = null;
assertNotClosed();
SourcedValue sourced = getSourcedValue(propertyName, propertyType);
if (sourced != null) {
value = sourced.getValue();
... | java |
@Trivial
public static void logToJobLogAndTraceOnly(Level level, String msg, Object[] params, Logger traceLogger){
String formattedMsg = getFormattedMessage(msg, params, "Job event.");
logRawMsgToJobLogAndTraceOnly(level, formattedMsg, traceLogger);
} | java |
@Trivial
public static void logRawMsgToJobLogAndTraceOnly(Level level, String msg, Logger traceLogger){
if(level.intValue() > Level.FINE.intValue()){
traceLogger.log(Level.FINE, msg);
logToJoblogIfNotTraceLoggable(Level.FINE, msg, traceLogger);
}
else{
traceLogger.log(level, msg);
logToJoblogIfNotTra... | java |
public byte[] toEncodedForm() {
if (encodedForm == null) {
encodedForm = new byte[encodedSize()];
ArrayUtil.writeLong(encodedForm, 0, accessSchemaId);
encode(encodedForm, new int[] { 8, encodedForm.length });
}
return encodedForm;
} | java |
private void encode(byte[] frame, int[] limits) {
JSType.setCount(frame, limits, indices.length);
for (int i = 0; i < indices.length; i++)
JSType.setCount(frame, limits, indices[i]);
JSType.setCount(frame, limits, varBias);
JSType.setCount(frame, limits, setCases.length);
for (int i = 0; i < s... | java |
private int encodedSize() {
int ans =
16 /* for accessSchemaID, indices.length, varBias, setCases.length,
and getCases.length */
+ 2*indices.length; // for the elements in indices
for (int i = 0; i < setCases.length; i++) {
int[] cases = setCases[i];
ans += 2; /... | java |
private static void violation(JMFType from, JMFType to) throws JMFSchemaViolationException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JmfTr.debug(tc, "Violation:"
+ " from = " + from.getFeatureName() + " : " + from
... | java |
private void recordOnePair(JSField access, JSchema accSchema, JSField encoding,
JSchema encSchema)
{
int acc = access.getAccessor(accSchema);
if (acc >= indices.length)
return;
indices[acc] = encoding.getAccessor(encSchema);
} | java |
private void checkForDeletingVariant(JMFType nonVar, JSVariant var, boolean varIsAccess,
JSchema accSchema, JSchema encSchema) throws JMFSchemaViolationException
{
// Deleting variant always has exactly two cases
if (var.getCaseCount() != 2) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebug... | java |
private static void checkExtraFields(JSTuple tuple, int startCol, int count) throws JMFSchemaViolationException {
for (int i = startCol; i < count; i++) {
JMFType field = tuple.getField(i);
if (field instanceof JSVariant) {
JMFType firstCase = ((JSVariant)field).getCase(0);
if (firstCase... | java |
public StampedValue asType(final Type type) {
StampedValue cachedValue = null;
//looping around a list is probably quicker than having a map since there are probably only one or two different
//types in use at any one time
for (StampedValue value : typeCache) {
if (value.ge... | java |
@Deprecated
public static void finalizeForDeletion(UIComponent component)
{
// remove any existing marks of deletion
component.getAttributes().remove(MARK_DELETED);
// finally remove any children marked as deleted
if (component.getChildCount() > 0)
{
for (Ite... | java |
public static UIComponent findChild(UIComponent parent, String id)
{
int childCount = parent.getChildCount();
if (childCount > 0)
{
for (int i = 0; i < childCount; i++)
{
UIComponent child = parent.getChildren().get(i);
if (id.equals(ch... | java |
public static UIComponent findChildByTagId(UIComponent parent, String id)
{
Iterator<UIComponent> itr = null;
if (parent.getChildCount() > 0)
{
for (int i = 0, childCount = parent.getChildCount(); i < childCount; i ++)
{
UIComponent child = parent.getC... | java |
public static Locale getLocale(FaceletContext ctx, TagAttribute attr) throws TagAttributeException
{
Object obj = attr.getObject(ctx);
if (obj instanceof Locale)
{
return (Locale) obj;
}
if (obj instanceof String)
{
String s = (String) obj;
... | java |
public static UIViewRoot getViewRoot(FaceletContext ctx, UIComponent parent)
{
UIComponent c = parent;
do
{
if (c instanceof UIViewRoot)
{
return (UIViewRoot) c;
}
else
{
c = c.getParent();
... | java |
@Deprecated
public static void markForDeletion(UIComponent component)
{
// flag this component as deleted
component.getAttributes().put(MARK_DELETED, Boolean.TRUE);
Iterator<UIComponent> iter = component.getFacetsAndChildren();
while (iter.hasNext())
{
UIComp... | java |
private static UIComponent createFacetUIPanel(FaceletContext ctx, UIComponent parent, String facetName)
{
FacesContext facesContext = ctx.getFacesContext();
UIComponent panel = facesContext.getApplication().createComponent(facesContext, UIPanel.COMPONENT_TYPE, null);
// The panel cr... | java |
public PolicyExecutor create(Map<String, Object> props) {
PolicyExecutor executor = new PolicyExecutorImpl((ExecutorServiceImpl) globalExecutor, (String) props.get("config.displayId"), null, policyExecutors);
executor.updateConfig(props);
return executor;
} | java |
public PolicyExecutor create(String identifier) {
return new PolicyExecutorImpl((ExecutorServiceImpl) globalExecutor, "PolicyExecutorProvider-" + identifier, null, policyExecutors);
} | java |
public PolicyExecutor create(String fullIdentifier, String owner) {
return new PolicyExecutorImpl((ExecutorServiceImpl) globalExecutor, fullIdentifier, owner, policyExecutors);
} | java |
public GZIPOutputStream getGZIPOutputStream(BeanId beanId)
throws CSIException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "getOutputStream", beanId);
final String fileName = getPortable... | java |
private String getPortableFilename(BeanId beanId)
{
// Historically, this method returned the equivalent of
// appendPortableFilenameString(beanId.toString()), where BeanId.toString
// returned "BeanId(" + j2eeName + ", " + pkey + ")", which translates to
// "BeanId_" + j2eeName + "_... | java |
public OutputStream getOutputStream(BeanId beanId)
throws CSIException
{
final String fileName = getPortableFilename(beanId);
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "getOutputStream: k... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.