code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
private SSLSocketFactory getSocketFactory(String id) throws IOException {
// first use?
SSLSocketFactory socketFactory = socketFactoryMap.get(id);
if (socketFactory == null) {
// the SSLConfig is optional, so if it's not there, use the default SSLSocketFactory.
if (id == ... | java |
private SSLServerSocketFactory getServerSocketFactory(String id) throws IOException {
// first use?
SSLServerSocketFactory serverSocketFactory = serverSocketFactoryMap.get(id);
if (serverSocketFactory == null) {
// the SSLConfig is optional, so if it's not there, use the default SSLS... | java |
private void configureServerSocket(SSLServerSocket serverSocket, SSLServerSocketFactory serverSocketFactory, String sslConfigName, OptionsKey options) throws IOException {
try {
String[] cipherSuites = sslConfig.getCipherSuites(sslConfigName, serverSocketFactory.getSupportedCipherSuites());
... | java |
private Collection<String> getRolesForSpecialSubject(String resourceName, String specialSubject) {
int found = 0;
Collection<String> roles = null;
FeatureAuthorizationTableService featureAuthzTableSvc = featureAuthzTableServiceRef.getService();
String featureAuthzRoleHeaderValue = null;
... | java |
private boolean isSubjectAuthorized(String resourceName,
Collection<String> requiredRoles, Subject subject) {
AccessDecisionService accessDecisionService = accessDecisionServiceRef.getService();
// check user access first
boolean isGranted = false;
... | java |
private WSCredential getWSCredentialFromSubject(Subject subject) {
if (subject != null) {
java.util.Collection<Object> publicCreds = subject.getPublicCredentials();
if (publicCreds != null && publicCreds.size() > 0) {
java.util.Iterator<Object> publicCredIterator = publi... | java |
private String getAccessId(WSCredential cred) {
String accessId = null;
try {
accessId = cred.getAccessId();
} catch (CredentialExpiredException e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Caught exception getting ... | java |
@SuppressWarnings("unchecked")
private String[] getGroupIds(WSCredential cred) {
Collection<String> ids = null;
if (cred != null) {
try {
ids = cred.getGroupIds();
} catch (CredentialExpiredException e) {
if (TraceComponent.isAnyTracingEnabled(... | java |
protected boolean isAllAuthenticatedGranted(String resourceName,
Collection<String> requiredRoles,
Subject subject) {
Collection<String> roles = getRolesForSpecialSubject(resourceName, AuthorizationTableService.ALL_A... | java |
private boolean isSubjectValid(Subject subject) {
final WSCredential wsCred = getWSCredentialFromSubject(subject);
if (wsCred == null) {
return false;
} else {
// TODO revisit this when EJBs are supported add additional
// checks would be required
... | java |
private String getRealmName(WSCredential cred) {
String realmName = null;
if (cred != null) {
try {
realmName = cred.getRealmName();
} catch (Exception e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.d... | java |
final void init() throws DiagnosticModuleRegistrationFailureException {
if (initialized) {
return;
}
initialized = true;
Method[] methods = getClass().getMethods();
for (Method method : methods) {
String name = method.getName().toLowerCase();
... | java |
public final boolean dumpComponentData(String[] input_directives, Throwable ex, IncidentStream ffdcis, Object callerThis, Object[] catcherObjects, String sourceId,
String[] callStack) {
startProcessing();
try {
ffdcis.writeLine("==> Performing defa... | java |
public final void getDataForDirectives(String[] directives, Throwable ex, IncidentStream ffdcis, Object callerThis, Object[] catcherObjects, String sourceId) {
if (directives == null || directives.length <= 0 || !continueProcessing())
return;
for (String s : directives) {
String... | java |
private final void invokeDiagnosticMethod(Method m, Throwable ex, IncidentStream ffdcis, Object callerThis, Object[] catcherObjects, String sourceId) {
try {
m.invoke(this, new Object[] { ex, ffdcis, callerThis, catcherObjects, sourceId });
ffdcis.writeLine("+ Data for directive [" + m.... | java |
public final boolean validate() {
if (makeNoise()) {
System.out.println("This method is NOT intended to be called from the runtime");
System.out.println("but is provided as part of unit test for diagnostic modules");
ListIterator<Method> im;
try {
... | java |
private boolean continueProcessing() {
Boolean currentValue = _continueProcessing.get();
if (currentValue != null)
return currentValue.booleanValue();
return true;
} | java |
public static int[] parseSpecStr(String in) {
if (in == null) {
return new int[0];
}
in = in.replaceAll(" ", "");
in = in.trim();
if (in.length() == 0) {
return new int[0];
}
String[] tokens = in.split(",");
int[] toReturn = new ... | java |
public static SelectionCriteriaFactory getInstance() {
if (_instance == null) {
synchronized (SIDestinationAddressFactory.class) {
try {
Class cls = Class
.forName(MESSAGE_SELECTOR_FACTORY_CLASS);
_instance = (SelectionCriteriaFactory) cls.newInstance();
} catch (Exception e) {
FFDC... | java |
private void setValue(Object newValue) {
try {
if (this.type == null)
value = newValue;
else if (this.type.equals("java.lang.String"))
value = newValue;
else if (this.type.equals("java.lang.Boolean"))
value = Boolean.valueOf((St... | java |
public void addSelectionCriteria(SelectionCriteria selCriteria)
throws SIDiscriminatorSyntaxException, SISelectorSyntaxException, SIResourceException
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "addSelectionCriteria",
new Object[] { selCriteria });
// We should rea... | java |
public SelectionCriteria[] getSelectionCriteria()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "getSelectionCriteria");
SelectionCriteria[] list = _consumerDispatcher.getConsumerDispatcherState().getSelectionCriteriaList();
if (tc.isEntryEnabled())
SibTr.exit(tc, "getSe... | java |
public void setUserProperties(Map userData) throws SIResourceException
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "setUserProperties",
new Object[] { userData });
_consumerDispatcher.getConsumerDispatcherState().setUserData(userData);
Transaction tran = _messageProcesso... | java |
public Map getUserProperties()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "getUserProperties");
Map map = _consumerDispatcher.getConsumerDispatcherState().getUserData();
if (tc.isEntryEnabled())
SibTr.exit(tc, "getUserProperties", map);
return map;
} | java |
public String getSubscriberId()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "getSubscriberId");
String subscriberId = _consumerDispatcher.getConsumerDispatcherState().getSubscriberID();
if (tc.isEntryEnabled())
SibTr.exit(tc, "getSubscriberId", subscriberId);
return su... | java |
public String getWPMTopicSpaceName()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "getWPMTopicSpaceName");
String tsName = _consumerDispatcher.getConsumerDispatcherState().getTopicSpaceName();
if (tc.isEntryEnabled())
SibTr.exit(tc, "getWPMTopicSpaceName", tsName)... | java |
public String getMEName()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "getMEName");
String meName = _messageProcessor.getMessagingEngineName();
if (tc.isEntryEnabled())
SibTr.exit(tc, "getMEName", meName);
return meName;
} | java |
@Override
public int getLocalId() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "getLocalId");
int localId = 0;
final TransactionImpl tran = ((TranManagerSet) TransactionManagerFactory.getTransactionManager()).getTransactionImpl();
if ... | java |
public static void beforeCompletion(TransactionImpl tran, int syncLevel) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "beforeCompletion", new Object[] { tran, syncLevel });
if (syncLevel >= 0) {
final ArrayList syncs = _syncLevels.get(syncLevel... | java |
public static void afterCompletion(TransactionImpl tran, int status, int syncLevel) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "afterCompletion", new Object[] { tran, status, syncLevel });
if (syncLevel >= 0) {
final ArrayList syncs = _syncLe... | java |
public static boolean callbacksRegistered() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "callbacksRegistered");
if (_syncLevel < 0) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.exit(tc, "callbacksRegist... | java |
private static void garbageCollectUnusedLevels() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "garbageCollectUnusedLevels");
final int numLevels = _syncLevels.size();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.d... | java |
private static void setLevel(ArrayList level) {
_syncLevel = nextLevel();
if (_syncLevel == _syncLevels.size()) {
_syncLevels.add(level);
} else {
_syncLevels.set(_syncLevel, level);
}
} | java |
private void validateParameters(String filePath, String password, int validity, String subjectDN, int keySize, String sigAlg) {
if (!validateFilePath(filePath)) {
throw new IllegalArgumentException("filePath must be a valid filePath within the file system.");
}
if (password == null |... | java |
private boolean validateFilePath(String filePath) {
if (filePath == null || filePath.isEmpty()) {
throw new IllegalArgumentException("filePath must be a valid filePath within the file system.");
}
// Check if the filename exists as a File -- use an absolute file to ensure we have
... | java |
public <K2 extends K, E2 extends E> BlockingList<K2, E2> make() {
@SuppressWarnings("unchecked")
BlockingListMaker<K2, E2> stricterThis = (BlockingListMaker<K2, E2>) this;
return stricterThis.internalCreateBlockingList();
} | java |
public BlockingListMaker<K, E> log(Logger logger) {
this.logger = logger == null ? NULL_LOGGER : logger;
return this;
} | java |
public BlockingListMaker<K, E> waitFor(long time, TimeUnit unit) {
this.nanoTimeout = time == 0 ? 1 : NANOSECONDS.convert(time, unit);
return this;
} | java |
public String getSystemMessageId() {
//based on com.ibm.ws.sib.mfp.impl.JsHdrsImpl
if (uuid != null) {
StringBuilder buff = new StringBuilder(uuid.toString());
buff.append(MfpConstants.MESSAGE_HANDLE_SEPARATOR);
buff.append(value);
return new String(buff);
}
else {
return n... | java |
private void processExistingWSDL(String wsdlLocation, Member newMember) throws InjectionException {
// if the wsdlLocation for this service reference is specified in the DD, log a debug statement and continue
if (wsrInfo.getWsdlLocation() != null && !"".equals(wsrInfo.getWsdlLocation())) {
i... | java |
public int compare (Object o1, Object o2) {
String re1 = ((ConnectionStatus)o1).getRemoteEngineName();
String re2 = ((ConnectionStatus)o2).getRemoteEngineName();
return re1.compareTo(re2);
} | java |
public synchronized void put(byte item)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", Byte.valueOf(item));
checkValid();
getCurrentByteBuffer(1).put(item);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc,... | java |
public synchronized void putShort(short item)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putShort", Short.valueOf(item));
checkValid();
getCurrentByteBuffer(2).putShort(item);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Sib... | java |
public synchronized void putInt(int item)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putInt", Integer.valueOf(item));
checkValid();
getCurrentByteBuffer(4).putInt(item);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exi... | java |
public synchronized void putLong(long item)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putLong", Long.valueOf(item));
checkValid();
getCurrentByteBuffer(4).putLong(item);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.ex... | java |
public synchronized void setReadOnly()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setReadOnly");
// And actually mark the real buffers as read-only too
for (int x = 0; x < dataList.size(); x++)
{
WsByteBuffer buff = dataList.get(x);
... | java |
public synchronized long prepareForTransmission()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "prepareForTransmission");
checkValid();
valid = false;
// Get the last buffer and flip it. Then we can simply return the list of buffers
if (data... | java |
public synchronized WsByteBuffer[] getBuffersForTransmission()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getBufferForTransmission");
// Ensure the buffer has been prepared
checkNotValid();
WsByteBuffer[] bufferArray = new WsByteBuffer[dataList... | java |
protected WsByteBuffer getCurrentByteBuffer(int sizeNeeded)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getCurrentByteBuffer", Integer.valueOf(sizeNeeded));
WsByteBuffer byteBuffer = null;
// First have a look in the dataList for a buffer.
if (d... | java |
private WsByteBuffer createNewWsByteBuffer(int sizeNeeded)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createNewWsByteBuffer", Integer.valueOf(sizeNeeded));
if (sizeNeeded < DEFAULT_BUFFER_SIZE)
{
sizeNeeded = DEFAULT_BUFFER_SIZE;
}
... | java |
public synchronized String getDumpReceivedBytes(int bytesToDump)
{
String dump = null;
if (receivedBuffer != null)
{
dump = getDumpBytes(receivedBuffer, bytesToDump, false);
}
return dump;
} | java |
private static String getDumpBytes(WsByteBuffer buffer, int bytesToDump, boolean rewind)
{
// Save the current position
int pos = buffer.position();
if (rewind)
{
buffer.rewind();
}
byte[] data = null;
int start;
int count = bytesToDump;
if (count > buf... | java |
private int getIntKeyForString(ArrayList<String> uniqueStrings, Object value) {
String stringValue = String.valueOf(value);
int retval = uniqueStrings.indexOf(stringValue);
if (retval < 0) {
retval = uniqueStrings.size();
uniqueStrings.add(stringValue);
}
return retval;
} | java |
public static void writeObjectInstanceOutput(final RESTResponse response, final ObjectInstanceWrapper value, final JSONConverter converter) {
response.setContentType(APIConstants.MEDIA_TYPE_APPLICATION_JSON);
OutputStream outStream = null;
try {
outStream = response.getOutputStream(... | java |
public static StatsGroup createStatsGroup(String groupName, String statsTemplate, StatsGroup parentGroup, ObjectName mBean, StatisticActions actionLsnr)
throws StatsFactoryException {
if (tc.isEntryEnabled())
Tr.entry(tc, new StringBuffer("createStatsGroup:name=").append(groupNam... | java |
public static void removeStatsInstance(StatsInstance instance)
throws StatsFactoryException {
if (tc.isEntryEnabled())
Tr.entry(tc, new StringBuffer("removeStatsInstance:name=").append(instance.getName()).toString());
StatsFactoryUtil.unRegisterStats((PmiModule) instance... | java |
public static void removeStatsGroup(StatsGroup group)
throws StatsFactoryException {
if (tc.isEntryEnabled())
Tr.entry(tc, new StringBuffer("removeStatsGroup:name=").append(group.getName()).toString());
StatsFactoryUtil.unRegisterStats((PmiModule) group, group.getMBean()... | java |
@Override
protected Validator createValidator() throws JspException
{
if (null == _minimum && null == _maximum)
{
throw new JspException("a minimum and / or a maximum have to be specified");
}
ELContext elContext = FacesContext.getCurrentInstance().getELContext();
... | java |
private String incrementAlias(KeyStore jKeyStore, String alias) throws KeyStoreException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "incrementAlias: " + alias);
int num = 0;
String base;
int index = alias.lastIndexOf('_');
if (-1 ... | java |
public String getUserName(boolean notAlternateUser)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "getUserName",
new Object[]{new Boolean(notAlternateUser)});
String userName = null;
if(!notAlternateUser // this catches the case where we want the
... | java |
public boolean isSIBServerSubject()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "isSIBServerSubject");
boolean ispriv = false;
// If the context is userid or alternate user based then it cannot be the
// privileged SIBServerSubject, so we only need to check the Subject and
... | java |
@Override
public void complete(VirtualConnection vc, TCPWriteRequestContext wsc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "complete() called: vc=" + vc);
}
HttpInboundServiceContextImpl mySC = (HttpInboundServiceContextImpl) vc.getStateMa... | java |
@Override
public void error(VirtualConnection vc, TCPWriteRequestContext wsc, IOException ioe) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "error called: vc=" + vc + " ioe=" + ioe);
}
HttpInboundServiceContextImpl mySC = (HttpInboundServiceCo... | java |
@Deactivate
protected void deactivate(int reason) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Deactivating " + this, "reason=" + reason);
}
// purge cached data from config
this.cachedEncoding = null;
this.cachedLocale = null... | java |
private List<List<String>> processAcceptLanguage(String acceptLanguage) {
StringTokenizer languageTokenizer = new StringTokenizer(acceptLanguage, ",");
TreeMap<Double, List<String>> map = new TreeMap<Double, List<String>>(Collections.reverseOrder());
List<String> list;
while (languageTo... | java |
private List<Locale> extractLocales(List<List<String>> allLangs) {
List<Locale> rc = new ArrayList<Locale>();
for (List<String> langList : allLangs) {
for (String language : langList) {
String country = "";
String variant = "";
int countryIndex... | java |
public Token getMetaDataToken()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(this, tc, "getMetaDataToken");
SibTr.exit(this, tc, "getMetaDataToken", "return=" + _metaDataToken);
}
return _metaDataToken;
} | java |
public void updateMetaDataOnly(Transaction tran, Persistable persistable) throws PersistenceException, ObjectManagerException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "updateMetaDataOnly", new Object[] { "Tran=" + tran, "Persistable=" + persistable... | java |
@Override
public java.util.List<DataSlice> getData() throws PersistentDataEncodingException, SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getData");
java.util.List<DataSlice> retval = null;
synchronize... | java |
@Override
public void setWasSpillingAtAddition(boolean wasSpillingAtAddition)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setWasSpillingAtAddition", Boolean.valueOf(wasSpillingAtAddition));
_wasSpillingAtAddition = wasSpillingAtAddition;... | java |
public void setWriter(Object sysLogHolder, Object sysErrHolder) {
this.sysOutHolder = (SystemLogHolder) sysLogHolder;
this.sysErrHolder = (SystemLogHolder) sysErrHolder;
} | java |
public static SecurityMetadata getSecurityMetadata() {
SecurityMetadata secMetadata = null;
ModuleMetaData mmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData().getModuleMetaData();
if (mmd instanceof WebModuleMetaData) {
secMetadata = (SecurityMet... | java |
public CompoundName getFirstInChain()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "getFirstInChain");
CompoundName firstInChain = collector.getFirst();
if (tc.isEntryEnabled())
SibTr.exit(tc, "getFirstInChain", firstInChain);
return firstInChain;
} | java |
public void validate(String destName, String busName) throws SINotPossibleInCurrentConfigurationException
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "validate", new Object[] { destName, busName });
if (collector.contains(destName, busName))
{
// Throw out exception detailing loop ... | java |
public String toStringPlus(String destName, String busName)
{
StringBuffer sb = new StringBuffer(toString());
// Add the destination name which has triggered the exception to the end
// of the list, making the problem obvious.
String compoundName = new CompoundName(destName, busName).toString();
... | java |
private void initialize(final File logDirectory, final String aaplName) {
if (logDirectory == null) {
captureEnabled = false;
return;
}
AccessController.doPrivileged(new PrivilegedAction<Void>() {
@Override
public Void run() {
// C... | java |
private static boolean resourceExist(ExternalContext externalContext, String path)
{
if ("/".equals(path))
{
// The root context exists always
return true;
}
Object ctx = externalContext.getContext();
if (ctx instanceof ServletContext)
{
... | java |
public synchronized void addSlice(CommsByteBuffer bufferContainingSlice, boolean last)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "addSlice", new Object[]{bufferContainingSlice, last});
slices.add(bufferContainingSlice.getDataSlice());
// ... | java |
public void updateArrivalTime(long messageArrivalTime)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "updateMessageArrivalTime", messageArrivalTime);
this.arrivalTime = messageArrivalTime;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Si... | java |
public void stop(int requestNumber, SendListener sendListener)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "stop", requestNumber);
logicallyStarted = false;
super.stop(requestNumber, sendListener);
if (TraceComponent.isAnyTracingEnabled() && tc.i... | java |
public void close(int requestNumber)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close", requestNumber);
// Deregister any error callback created for this connection.
if (asynchReader != null)
{
try
{
... | java |
public void setAsynchConsumerCallback(int requestNumber,
int maxActiveMessages,
long messageLockExpiry,
int batchsize,
OrderingContext orderContext)
{
... | java |
@Override
public void postConstruct(Object instance, Object creationMetaData) throws InjectionProviderException
{
// TODO the servlet spec is not clear about searching in superclass??
Class clazz = instance.getClass();
Method[] methods = getDeclaredMethods(clazz);
if (methods == ... | java |
private WebSphereCDIDeployment createWebSphereCDIDeployment(Application application,
Set<ExtensionArchive> extensionArchives) throws CDIException {
WebSphereCDIDeployment webSphereCDIDeployment = new WebSphereCDIDeploymentImpl(application, cdiRunti... | java |
private void addRuntimeExtensions(WebSphereCDIDeployment webSphereCDIDeployment,
DiscoveredBdas discoveredBdas) throws CDIException {
//add the normal runtime extension using the bundle classloader to load the bda classes
Set<WebSphereBeanDeploymentArchive> extensio... | java |
private Set<WebSphereBeanDeploymentArchive> createExtensionBDAs(WebSphereCDIDeployment applicationContext) throws CDIException {
Set<WebSphereBeanDeploymentArchive> extensionBdas = new HashSet<WebSphereBeanDeploymentArchive>();
Set<ExtensionArchive> extensions = getExtensionArchives();
if (ex... | java |
private void processModules(WebSphereCDIDeployment applicationContext,
DiscoveredBdas discoveredBdas,
Collection<CDIArchive> moduleArchives) throws CDIException {
List<WebSphereBeanDeploymentArchive> moduleBDAs = new ArrayList<WebSphereBeanDeploym... | java |
private synchronized Set<ExtensionArchive> getExtensionArchives() throws CDIException {
if (runtimeExtensionSet == null) {
runtimeExtensionSet = new HashSet<ExtensionArchive>();
// get hold of the container for extension bundle
//add create the bean deployment archive from t... | java |
public int compareEntitysWithRespectToProperties(Entity entity1, Entity entity2) {
List<SortKeyType> sortKeys = sortControl.getSortKeys();
int temp = 0;
for (int i = 0; i < sortKeys.size() && temp == 0; i++) {
SortKeyType sortKey = (SortKeyType) sortKeys.get(i);
String p... | java |
public List<Entity> sortEntities(List<Entity> entities) {
if (entities != null && entities.size() > 0) {
Entity[] ents = (Entity[]) entities.toArray(new Entity[entities.size()]);
WIMSortCompare<Entity> wimSortComparator = new WIMSortCompare<Entity>(sortControl);
Arrays.sort(e... | java |
@Override
public void encodeBegin(FacesContext context) throws IOException
{
_initialDescendantComponentState = null;
if (_isValidChilds && !hasErrorMessages(context))
{
// Clear the data model so that when rendering code calls
// getDataModel a fresh model is fet... | java |
private void processColumnFacets(FacesContext context, int processAction)
{
for (int i = 0, childCount = getChildCount(); i < childCount; i++)
{
UIComponent child = getChildren().get(i);
if (child instanceof UIColumn)
{
if (! _ComponentUtils.isRend... | java |
private void processColumnChildren(FacesContext context, int processAction)
{
int first = getFirst();
int rows = getRows();
int last;
if (rows == 0)
{
last = getRowCount();
}
else
{
last = first + rows;
}
for (in... | java |
public void setRows(int rows)
{
if (rows < 0)
{
throw new IllegalArgumentException("rows: " + rows);
}
getStateHelper().put(PropertyKeys.rows, rows );
} | java |
@JSFProperty(literalOnly=true, faceletsOnly=true)
public boolean isRowStatePreserved()
{
Boolean b = (Boolean) getStateHelper().get(PropertyKeys.rowStatePreserved);
return b == null ? false : b.booleanValue();
} | java |
@Override
public List<String> getManagedObjects() {
ArrayList<String> managedObjects = new ArrayList<String>();
if (this.application != null) {
managedObjects.addAll(application.getManagedObjects());
}
if (this.factory != null) {
managedObjects.addAll(factory.... | java |
public long getLastModified() {
if(matchedEntry != null){
return matchedEntry.getLastModified();
} else if (matchedZipFile != null){
return matchedZipFile.getLastModified();
} else if (matchedFile != null){
return matchedFile.lastModified();
} else {
... | java |
public void expiryAlarm(AORequestedTick requestedTick)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "expiryAlarm", requestedTick);
boolean transitionOccured = false;
ArrayList<AORequestedTick> satisfiedTicks = null;
try
{
this.lock();
try
... | java |
public void alarm(Object thandle)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "alarm", thandle);
boolean doClose = false;
// We're probably about to close this consumer, which needs us to remove it from the AOStream's
// consciousness first (so that it do... | java |
public void cleanup() {
cleanupLock.lock();
try {
// Clean up the write interface.
if (null != writeInterface) {
this.writeInterface.close();
this.writeInterface = null;
}
// Clean up the read interface.
if (null... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.